Last active
August 7, 2017 12:39
-
-
Save sudar/ddf6a85173aff4db51a26aa1bcafa848 to your computer and use it in GitHub Desktop.
Change the capability that is required for viewing email logs
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 | |
function wpel_change_email_log_user_role( $capability ) { | |
return 'manage_options' // change this to the capability that you want. | |
} | |
add_filter( 'el_view_email_log_capability', 'wpel_change_email_log_user_role' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment