Advertisement
Guest User

Remove meta boxes from Ultimate Facebook plugin

a guest
Aug 30th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement