SHARE
TWEET

Hidden Options

a guest Oct 27th, 2011 3,659 Never
  1. // Change what's hidden by default
  2. add_filter('default_hidden_meta_boxes', 'hide_meta_lock', 10, 2);
  3. function hide_meta_lock($hidden, $screen) {
  4.         if ( 'frog' == $screen->base )
  5.                 $hidden = array('postexcerpt','slugdiv','postcustom','trackbacksdiv', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv');
  6.                 // removed 'postexcerpt',
  7.         return $hidden;
  8. }
  9.  
RAW Paste Data
Top