Created
June 21, 2014 19:51
-
-
Save chrisvanpatten/477c238b4d185bcbb48b to your computer and use it in GitHub Desktop.
Remove a WordPress meta box permanently
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
<?php | |
/** | |
* vpm_remove_meta_box | |
*/ | |
function vpm_remove_meta_box() { | |
remove_meta_box( 'postcustom', 'post', 'normal' ); | |
} | |
add_action( 'add_meta_boxes', 'vpm_remove_meta_box' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment