Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Created August 7, 2014 01:46
Show Gist options
  • Save themeblvd/c811469c8720264dc166 to your computer and use it in GitHub Desktop.
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.
<?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