WordPress Hide Page Editor Based on ID?

Is there anyway to hide the post editor wysiwyg on a page based on the page ID?

I have a few custom meta boxes and dont need it on this specific page..

Read More

I’ve tried the following but it doesnt do anything, the page has the id of 75 but its still showing up?

function remove_pages_editor(){
  if(get_the_ID() == 75) {
     remove_post_type_support( 'post', 'editor' );
  } // end if
 } // end remove_pages_editor
add_action( 'add_meta_boxes', 'remove_pages_editor' );

Any ideas..?

Related posts

Leave a Reply

1 comment