Custom Admin | Type: PHPHide Main Content Editor on Specific Page Template

Generally, I use this for the home page, but it can be used for any page template that doesn’t use the main editor. Add the following code to the theme functions file.

To remove editor from custom post type listing pages or from post types:

function remove_editor() {
    /* basename is used for templates that are in the subdirectory of the theme */
    $current_page_template_slug = basename( get_page_template_slug() );
    /* file names of templates to remove the editor on */
    $excluded_template_slugs = array(
        'page_home.php',
        'page_newslist.php'
    );
    if( in_array($current_page_template_slug, $excluded_template_slugs) ) {
        remove_post_type_support('page', 'editor'); //remove editor from pages listed above
    }
}
add_action('admin_enqueue_scripts', 'remove_editor');

Reference Links