Support » Multisite » Ensuring roles are all correct

Ensuring roles are all correct

  • danhgilmore


    In the past, we had custom roles, and with that, custom capabilities. We’ve decided to revert back to the default roles and their capabilities. Basically, normalize everything. I have code to change {CustomRole}->{StandardRole}, but I was wondering the best way to reset the capabilities.

    I found the function populate_roles() (line 376 in wp-admin/includes/schema.php) and thought that I might be able to call it and reset everything? Is there any reason I shouldn’t?

  • The topic ‘Ensuring roles are all correct’ is closed to new replies.