Created
March 4, 2020 13:17
-
-
Save chrismademe/bc8f93d61b28237194798ff07bd9ad89 to your computer and use it in GitHub Desktop.
WordPress: Give Editor role access to the 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
<?php | |
add_action( 'init', function() { | |
$role = get_role('editor'); | |
$role->add_cap('edit_theme_options'); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment