Created
September 29, 2022 07:56
-
-
Save thecodepoetry/3286f3efe031aef946a826430a258bd1 to your computer and use it in GitHub Desktop.
Add addtinal parmaters to The7 CPT builder
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
add_filter( 'cptui_user_supports_params', function( $supports, $post_type ) { | |
if ( $post_type === 'movies' ) { | |
$supports['hierarchical'] = true; | |
} | |
return $supports; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code in your child theme functions.php, make sure to replace "movies" with your post type name