Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchelldmiller/2b123297ca3937ed7e3d to your computer and use it in GitHub Desktop.
Save mitchelldmiller/2b123297ca3937ed7e3d to your computer and use it in GitHub Desktop.
How to modify Quick Mail sender permission
<?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