Created
February 4, 2016 19:32
-
-
Save mitchelldmiller/2b123297ca3937ed7e3d to your computer and use it in GitHub Desktop.
How to modify Quick Mail sender permission
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 | |
/** | |
* WordPress filter to modify the default Quick Mail sending permission. | |
* | |
* @param string $qm_user_capability | |
* @return string new requirement | |
* @link https://github.com/mitchelldmiller/quick-mail-wp-plugin | |
*/ | |
function qm_sender_capability( $qm_user_capability ) | |
{ | |
return 'list_users'; // administrator | |
} | |
add_filter( 'quick_mail_user_capability', 'qm_sender_capability' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment