Created
June 26, 2020 09:29
-
-
Save alanef/9f1f9c8d75257ade49502db3c87ed33e to your computer and use it in GitHub Desktop.
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
| <?php | |
| /* | |
| Plugin Name: Allow Editor to Manage Options | |
| Plugin URI: https://fullworks.net/ | |
| Description: Allow Editor manage_otption capabaility | |
| Author: Alan | |
| */ | |
| add_action( 'init', function () { | |
| $role = get_role( 'editor' ); | |
| $role->add_cap( 'manage_options' ); | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment