Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Hidden Options

By: a guest on Oct 27th, 2011  |  syntax: PHP  |  size: 0.36 KB  |  views: 2,122  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.