Created
August 4, 2016 14:40
-
-
Save polevaultweb/0d5d1604248246ce039a7bb9d6e37cb7 to your computer and use it in GitHub Desktop.
Make the Intagrate post type public
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
| <?php | |
| add_filter( 'register_post_type_args', 'my_register_post_type_args', 10, 2 ); | |
| function my_register_post_type_args( $args, $post_type ) { | |
| if ( 'instagrate_pro' !== $post_type ) { | |
| return $args; | |
| } | |
| $args['public'] = true; | |
| return $args; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment