[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.
