Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Hide metaboxes
- */
- function mmprofs_remove_my_post_metaboxes() {
- $types = get_post_types(array('public'=>true), 'names');
- foreach ($types as $type) {
- if ('attachment' == $type) continue;
- remove_meta_box('wdfb_facebook_publishing', $type, 'advanced');
- remove_meta_box('wdfb_opengraph_editor', $type, 'side');
- }
- }
- add_action('add_meta_boxes', 'mmprofs_remove_my_post_metaboxes', 20);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement