Forums

Ensuring roles are all correct (1 post)

  1. danhgilmore
    Member
    Posted 7 months 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?

Reply

You must log in to post.

About this Topic