Hello Readers,
If you want to remove the default editor from your post type, then you may use below code.
It remove the default editor from your custom post type and you can use it for default post type as well.
remove_post_type_support() should be attached to the 'init' action hook.
<?php
function do_remove_post_type_support_editor()
{
remove_post_type_support( 'POST_TYPE', 'editor' ); // put post type
remove_post_type_support( 'POST_TYPE', 'editor' ); // put post type
}
add_action( 'init', 'do_remove_post_type_support_editor' );
?>
0 Comment(s)