Created
September 21, 2012 20:43
-
-
Save arod2634/3763779 to your computer and use it in GitHub Desktop.
Customize Wordpress 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 Meta-Boxes from Posts & Pages Editor Screens | |
function remove_extra_meta_boxes() { | |
remove_meta_box( 'postcustom' , 'post' , 'normal' ); // custom fields for posts | |
remove_meta_box( 'postcustom' , 'page' , 'normal' ); // custom fields for pages | |
remove_meta_box( 'postexcerpt' , 'post' , 'normal' ); // post excerpts | |
remove_meta_box( 'postexcerpt' , 'page' , 'normal' ); // page excerpts | |
remove_meta_box( 'commentsdiv' , 'post' , 'normal' ); // recent comments for posts | |
remove_meta_box( 'commentsdiv' , 'page' , 'normal' ); // recent comments for pages | |
remove_meta_box( 'tagsdiv-post_tag' , 'post' , 'side' ); // post tags | |
remove_meta_box( 'tagsdiv-post_tag' , 'page' , 'side' ); // page tags | |
remove_meta_box( 'trackbacksdiv' , 'post' , 'normal' ); // post trackbacks | |
remove_meta_box( 'trackbacksdiv' , 'page' , 'normal' ); // page trackbacks | |
remove_meta_box( 'commentstatusdiv' , 'post' , 'normal' ); // allow comments for posts | |
remove_meta_box( 'commentstatusdiv' , 'page' , 'normal' ); // allow comments for pages | |
remove_meta_box('slugdiv','post','normal'); // post slug | |
remove_meta_box('slugdiv','page','normal'); // page slug | |
remove_meta_box('pageparentdiv','page','side'); // Page Parent | |
} | |
add_action( 'admin_menu' , 'remove_extra_meta_boxes' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment