Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Created September 29, 2022 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodepoetry/3286f3efe031aef946a826430a258bd1 to your computer and use it in GitHub Desktop.
Save thecodepoetry/3286f3efe031aef946a826430a258bd1 to your computer and use it in GitHub Desktop.
Add addtinal parmaters to The7 CPT builder
add_filter( 'cptui_user_supports_params', function( $supports, $post_type ) {
if ( $post_type === 'movies' ) {
$supports['hierarchical'] = true;
}
return $supports;
}, 10, 2 );
@thecodepoetry
Copy link
Author

Add this code in your child theme functions.php, make sure to replace "movies" with your post type name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment