Return to Snippet

Revision: 44716
at April 16, 2011 05:29 by prwhitehead


Initial Code
/**
* Add to your functions.php
* to hide meta boxes just uncomment the line
*
*/

function customize_meta_boxes() {
	$array = array(	
                'slugdiv',
		'postexcerpt', 
		'passworddiv', 
		'categorydiv',
		'tagsdiv', 
		'trackbacksdiv', 
		'commentstatusdiv',
		'commentsdiv',
		'authordiv', 
		'revisionsdiv', 
		'postcustom'
		);
		
	foreach ($array as $box) 
	{
		remove_meta_box($box,'post','normal');
		remove_meta_box($box,'page','normal');
	}
}
add_action('admin_init', 'customize_meta_boxes');

Initial URL

                                

Initial Description
To remove some of the lesser used edit post / page meta boxes:

Initial Title
Wordpress: Remove page / post meta boxes

Initial Tags
php, wordpress

Initial Language
PHP