Skip to content

Instantly share code, notes, and snippets.

@sudar
Last active August 7, 2017 12:39
Show Gist options
  • Save sudar/ddf6a85173aff4db51a26aa1bcafa848 to your computer and use it in GitHub Desktop.
Save sudar/ddf6a85173aff4db51a26aa1bcafa848 to your computer and use it in GitHub Desktop.
Change the capability that is required for viewing email logs
<?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