Forked from DevinWalker/remove-rev-slider-metabox.php
Created
March 30, 2016 12:09
-
-
Save kenzik/9a41fe3b9872472ed59f2488161264f4 to your computer and use it in GitHub Desktop.
This code removed the Revolution Slider metabox on pages, posts and CTPs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove Rev Slider Metabox | |
*/ | |
if ( is_admin() ) { | |
function remove_revolution_slider_meta_boxes() { | |
remove_meta_box( 'mymetabox_revslider_0', 'page', 'normal' ); | |
remove_meta_box( 'mymetabox_revslider_0', 'post', 'normal' ); | |
remove_meta_box( 'mymetabox_revslider_0', 'YOUR_CUSTOM_POST_TYPE', 'normal' ); | |
} | |
add_action( 'do_meta_boxes', 'remove_revolution_slider_meta_boxes' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment