daily pastebin goal
34%
SHARE
TWEET

Remove meta boxes from Ultimate Facebook plugin

a guest Aug 30th, 2013 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Hide metaboxes
  3.  */
  4. function mmprofs_remove_my_post_metaboxes() {
  5.         $types = get_post_types(array('public'=>true), 'names');
  6.         foreach ($types as $type) {
  7.                 if ('attachment' == $type) continue;
  8.                 remove_meta_box('wdfb_facebook_publishing', $type, 'advanced');
  9.         remove_meta_box('wdfb_opengraph_editor', $type, 'side');
  10.         }
  11. }
  12. add_action('add_meta_boxes', 'mmprofs_remove_my_post_metaboxes', 20);
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