Created
November 24, 2015 10:51
-
-
Save amielucha/1960896328e0fe46373e to your computer and use it in GitHub Desktop.
WordPress Editor User Permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // get the the role object | |
| $role_object = get_role( 'editor' ); | |
| // add $cap capability to this role object | |
| $role_object->add_cap( 'edit_theme_options' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment