Skip to content

Instantly share code, notes, and snippets.

@aaroneaton
Created August 28, 2015 20:20
Show Gist options
  • Save aaroneaton/65648f064df436005caa to your computer and use it in GitHub Desktop.
Save aaroneaton/65648f064df436005caa to your computer and use it in GitHub Desktop.
Allow editors to use the OptinMonster admin area
<?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