Created
February 4, 2016 20:29
-
-
Save mitchelldmiller/7c9d78b7c6f1635a2113 to your computer and use it in GitHub Desktop.
WordPress filter to allow editors to edit Quick Mail user display options
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 allow editors to edit Quick Mail user display options. | |
* | |
* @param string $qm_user_capability | |
* @return string new requirement | |
* @link https://github.com/mitchelldmiller/quick-mail-wp-plugin | |
*/ | |
function qm_setup_capability( $qm_user_capability ) | |
{ | |
return 'edit_posts'; // editors | |
} | |
add_filter( 'quick_mail_setup_capability', 'qm_setup_capability' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment