In this example, we remove the visual and text editor of the "Wedding Packages" admin page because this page has no need for freeform texts.


In functions.php:

add_action( 'admin_head', function() {
  global $pagenow;

  if ( !('post.php' == $pagenow) ) return;

  global $post;
  // Get the Post ID.
  $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'] ;
  if( !isset( $post_id ) ) return;

  // Here we use the page's slug which is 'wedding-package'
  if('wedding-package' == $post->post_name){
    remove_post_type_support('page', 'editor');