Viewing 1 replies (of 1 total)
  • Plugin Author tnomi

    (@tnomi)

    Thank you for your feedback.

    The following cord is the hint,
    the user who isn’t “Administrator” will be able to edit “scheduler for administrator”.

    Insert this cord into “functions.php” of the theme you use.

    add_filter( 'attmgr_can_edit_admin_scheduler', 'my_filter', 99, 2 );
    function my_filter( $result, $user ) {
    	global $current_user;
    	if ( ! $result ) {
    		if ( current_user_can( 'editor' ) ) {
    			$result = true;
    		}
    	}
    	return $result;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘User roles to access admin scheduler’ is closed to new replies.