Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 14, 2020 08:06
Show Gist options
  • Select an option

  • Save yousufansa/5bc32f7290e04c261f7ebefd63fd4cff to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/5bc32f7290e04c261f7ebefd63fd4cff to your computer and use it in GitHub Desktop.
MAS Videos - Remove Person Post Type
if( !function_exists( 'masvideos_child_unregister_person_post_types' ) ) {
function masvideos_child_unregister_person_post_types(){
unregister_post_type( 'person' );
}
}
add_action( 'init','masvideos_child_unregister_person_post_types' );
if ( ! function_exists( 'masvideos_child_remove_cast_crew' ) ) {
function masvideos_child_remove_cast_crew( $tabs ) {
unset( $tabs['cast'] );
unset( $tabs['crew'] );
return $tabs;
}
}
add_filter( 'masvideos_movie_data_tabs', 'masvideos_child_remove_cast_crew' );
add_filter( 'masvideos_tv_show_data_tabs', 'masvideos_child_remove_cast_crew' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment