Roles not working

#574672
  • Resolved Anonymous
    Rank Math free

    I have disabled all accounts except admin. And if a member is any role in their user profile section, it shows the rank math option. How do you turn this off? Users should not have the ability to add any info in the profile section.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Unfortunately, there’s no option to remove those user details in Rank Math’s Role Manager feature.

    Please note that those are part of the profile, and since the profile is something very personal, those fields cannot be removed under the user edit page.

    However, you can remove them with the help of CSS and/or Javascript, but you may need to hire a developer that could implement that since it falls outside the scope of our support.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    That is not a true statement, as you allow it to be removed from the post and page in edit mode. This is a security leak on a member site and cannot be allowed.

    If this is the case, I’ll have to look for an alternative, unfortunately.

    Hello,

    Please try adding the following filter to the website to remove the additional profile URLs added by our plugin:

    
    function remove_custom_profile_fields($fields) {
        unset($fields['twitter']);
        unset($fields['facebook']);
        unset($fields['additional_profile_urls']);
        return $fields;
    }
    
    add_filter('user_contactmethods', 'remove_custom_profile_fields', 999);
    

    You can use one of the methods mentioned here to add the filter: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Roles not working’ is closed to new replies.