Skip to content

Instantly share code, notes, and snippets.

@CaroManel
Created January 7, 2016 20:13
Show Gist options
  • Save CaroManel/79f58555c9343f627572 to your computer and use it in GitHub Desktop.
Save CaroManel/79f58555c9343f627572 to your computer and use it in GitHub Desktop.
Remove Slider Revolution Metabox
/**
* Remove Slider Revolution Metabox
* for certain post types
*/
function remove_slider_rev_metabox() {
if ( is_admin() ) {
$post_types = array('page','post','custom','acf');
foreach ($post_types as $post_type) {
remove_meta_box( 'mymetabox_revslider_0', $post_type, 'normal' );
}
}
}
add_action( 'do_meta_boxes', 'remove_slider_rev_metabox' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment