Created
August 7, 2014 01:46
-
-
Save themeblvd/c811469c8720264dc166 to your computer and use it in GitHub Desktop.
If old theme is already using a custom meta function, then we want to unhook the new options for sub meta.
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 | |
/** | |
* Remove Content > Single > Sub Meta Information | |
*/ | |
themeblvd_remove_option( 'content', 'single', 'single_sub_meta' ); | |
/** | |
* Remove Sub Meta Information option from Post Options | |
*/ | |
function theme_remove_sub_meta_post_option( $setup ) { | |
unset($setup['tb_sub_meta']); | |
return $setup; | |
} | |
add_filter( 'themeblvd_post_meta', 'theme_remove_sub_meta_post_option' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment