Skip to content

Instantly share code, notes, and snippets.

@sudar

sudar/capability.php

Last active Aug 7, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.