Plugin Functionality Only for Editor and Administrator
You could check the user role when loading your metabox. //get user $user_id = get_current_user_id(); $user = new WP_User($user_id); //check user role if($user->roles[0] == ‘administrator’ || $user->roles[0] == ‘editor’) { //add your metabox here } That way the metabox is only added to the post for editor’s and users, you’ll probably want to wrap your … Read more