• Resolved John Quail

    (@johnquail)


    Hi! I have reset the WordPress users roles to its default settings, and now I can’t access Rank Math Seo settings in the admin panel. How can I fix this? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @johnquail,

    Thank you for contacting support.

    You can add the following code snippet on your website to reset the roles from Rank Math:

    use RankMath\Role_Manager\Capability_Manager as RMCapability; add_action('plugins_loaded', 'reset_rm_capabilities'); function reset_rm_capabilities() { return RMCapability::get()->reset_capabilities(); }

    This can be added to the functions.php file of your theme.

    After you reload the admin dashboard a couple of times this should run and the roles should be set as the default ones.

    Lastly, you should remove this code snippet to prevent this resetting of roles from happening each time you open the dashboard.

    Hope this helps solve your issues.

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

    Thread Starter John Quail

    (@johnquail)

    It worked, thanks!!

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @johnquail

    Glad that helped.

    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://www.ads-software.com/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us and would go a really long way.

    Thank you.??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restore rank_math capabilities to admin’ is closed to new replies.