SHARE
TWEET

Untitled

a guest Feb 15th, 2011 1,539 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Hide Unused Boxes
  2. function hide_boxes() {
  3.   // For Posts
  4.   remove_meta_box('postexcerpt', 'post', 'normal');
  5.   remove_meta_box('trackbacksdiv', 'post', 'normal');
  6.   remove_meta_box('postcustom', 'post', 'normal');
  7.   remove_meta_box('slugdiv', 'post', 'normal');
  8.  
  9.   // For Pages
  10.   remove_meta_box('postcustom', 'page', 'normal');
  11.   remove_meta_box('slugdiv', 'page', 'normal');
  12. }
  13. add_action('admin_init', 'hide_boxes');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top