Viewing 1 replies (of 1 total)
  • If you are familiar with PHP, locate this in file class.email-post-changes.php:

    // The meat of the plugin
    function post_updated( $post_id, $post_after, $post_before ) {
    	$options = $this->get_options();
    	...

    Replace with this, maybe change/add your roles:

    // The meat of the plugin
    function post_updated( $post_id, $post_after, $post_before ) {
    	if ( current_user_can( 'administrator' ) || current_user_can( 'editor' ) )
    		return;
    
    	$options = $this->get_options();
    	...

    It would be trivial to add a selection of roles to admin backend and code, similar to the selection of post types, I’ll leave that as an exercise for the reader…

Viewing 1 replies (of 1 total)
  • The topic ‘Enhancement – Limit by user role’ is closed to new replies.