Created
February 9, 2016 18:55
-
-
Save caercam/229059b72e09c3aad65c to your computer and use it in GitHub Desktop.
WPMovieLibrary duplicate movie menu fix
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 | |
function _alx_movie_duplicate_menu_fix( $args, $post_type ) { | |
if ( 'movie' != $post_type ) { | |
return $args; | |
} | |
$args['show_in_menu'] = false; | |
return $args; | |
} | |
add_filter( 'register_post_type_args', '_alx_movie_duplicate_menu_fix', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment