/ Published in: PHP
To remove some of the lesser used edit post / page meta boxes:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Add to your functions.php * to hide meta boxes just uncomment the line * */ function customize_meta_boxes() { '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');