Created
August 28, 2015 20:20
-
-
Save aaroneaton/65648f064df436005caa to your computer and use it in GitHub Desktop.
Allow editors to use the OptinMonster admin area
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 // Make sure to remove this tag! | |
// Add this code to your theme's functions.php file. | |
add_filter( 'optin_monster_api_menu_cap', 'om_allow_editors_in_menu' ); | |
function om_allow_editors_in_menu( $capability ) { | |
// The default capability is 'manage_options'. We can switch this out with an editor capability. | |
return 'publish_pages'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment