Last active
December 18, 2015 07:59
-
-
Save spearsmarketing/5750501 to your computer and use it in GitHub Desktop.
Code to remove default WordPress page meta boxes. Add to functions.php file. Taken from http://wpmu.org/remove-wordpress-meta-boxes/
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
// REMOVE PAGE META BOXES | |
function remove_my_page_metaboxes() { | |
remove_meta_box( 'postcustom','page','normal' ); // Custom Fields Metabox | |
remove_meta_box( 'postexcerpt','page','normal' ); // Excerpt Metabox | |
remove_meta_box( 'commentstatusdiv','page','normal' ); // Comments Status Metabox | |
remove_meta_box( 'commentsdiv', 'page','normal' ); // Comments Metabox | |
remove_meta_box( 'trackbacksdiv','page','normal' ); // Talkback Metabox | |
remove_meta_box( 'slugdiv','page','normal' ); // Slug Metabox | |
remove_meta_box( 'authordiv','page','normal' ); // Author Metabox | |
} | |
add_action('admin_menu','remove_my_page_metaboxes'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment