Remove editor only for author based on Custom Post Types

// Remove editor only for author based on Custom Post Types
function remove_editor() {
 if (current_user_can('author')){
   remove_post_type_support('custom_post_type','editor');
 }
}
add_action('admin_init','remove_editor');

Source: 10+ Useful WordPress Code Snippets

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.