Created
October 14, 2020 08:06
-
-
Save yousufansa/5bc32f7290e04c261f7ebefd63fd4cff to your computer and use it in GitHub Desktop.
MAS Videos - Remove Person Post Type
This file contains hidden or 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
| 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