Skip to content

Instantly share code, notes, and snippets.

@hrsetyono

hrsetyono/functions.php Secret

Created Jul 16, 2020
Embed
What would you like to do?
https://wptips.dev/custom-rest-api - Snippet from that article to create the custom post type
register_post_type( 'project', [
'public' => true,
'label' => 'Project'
] );
register_taxonomy( 'project_category', ['project'], [
'hierarchical' => true
] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.