Restore rank_math capabilities to admin

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer