Created
May 24, 2017 10:27
-
-
Save shaunkrd/c36b3e4b886d50a927c6b7f57a6ed21b to your computer and use it in GitHub Desktop.
WordPress - Give editors access to 'Appearance' menu
This file contains 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
// Give editors access to 'Appearance' menu | |
// 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