Created
February 21, 2015 03:47
-
-
Save ericakfranz/0e277b1a8235c9d0e15c to your computer and use it in GitHub Desktop.
Enable Editors to view/add/edit OptinMonster
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
add_filter( 'optin_monster_menu_cap', function( $cap ){ | |
if ( current_user_can('delete_pages') ) { | |
return 'edit_pages'; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment