Last active
August 2, 2016 03:25
-
-
Save mizner/a72d81c0509c7d0861fcb5667ec9173f to your computer and use it in GitHub Desktop.
Gravity Forms + Custom Post Type (enable all post types)
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( 'gfcpt_post_type_args', 'my_gf_post_type_args' ); | |
function my_gf_post_type_args( $args ) { | |
$args['public'] = false; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment