Created
July 21, 2012 13:38
-
-
Save gyrus/3155850 to your computer and use it in GitHub Desktop.
Remove WordPress content editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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