Created
April 1, 2014 12:59
-
-
Save ingozoell/9913490 to your computer and use it in GitHub Desktop.
Allow Editors to chance theme options and Redux Framework https://codex.wordpress.org/Roles_and_Capabilities
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
/* | |
* Allow Editors to chance theme options and Redux Framework | |
* https://codex.wordpress.org/Roles_and_Capabilities | |
* | |
* | |
*/ | |
// get the the role object | |
$editor = get_role('editor'); | |
// add $cap capability to this role object | |
// $editor->add_cap ( 'edit_theme_options' ); | |
$editor->add_cap ( 'manage_options' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment