• I am working on a plugin that changes the capabilites for the Author role. Even if I disable the plugin, however, the Author role retains the additional capabilities I had granted…

    Is there something I have to do to refresh the roles/capabilities?

    If I modify the plugin to remove the capabilities I added they are then removed.

    I expected them to only be added while my plugin was active. Am I missing something?

    Thank you in advance for your help.

Viewing 1 replies (of 1 total)
  • Thread Starter Josh Eby

    (@josheby)

    OK, so I have figured out that WP stored the roles/capabilities in the wp_options table. So what is the recommended method for modifying roles/capabilities with a plugin? Activate and Deactivate? I am guessing it would be considered bad practice to have this running on admin_init considering it doesn’t need to run every page load…

    Thoughts???

Viewing 1 replies (of 1 total)
  • The topic ‘Are Roles/Capabilities Caches In Some Way?’ is closed to new replies.