WordPress.org

Ready to get started?Download WordPress

Forums

Ensuring roles are all correct (1 post)

  1. danhgilmore
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic