Skip to content

Instantly share code, notes, and snippets.

@gyrus
Created July 21, 2012 13:38
Show Gist options
  • Save gyrus/3155850 to your computer and use it in GitHub Desktop.
Save gyrus/3155850 to your computer and use it in GitHub Desktop.
Remove WordPress content editor
<?php
/**
* Remove WordPress content editor from certain pages
* Add page IDs to the array
*/
add_action( 'do_meta_boxes', 'pilau_remove_editor' );
function pilau_remove_editor() {
global $post;
if ( in_array( $post->ID, array( ) ) )
remove_post_type_support( 'page', 'editor' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment