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..
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..?
This can be done with an earlier hook,
do_action('load-' . $page_hook);
.