Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
function create_post_type() {
register_post_type( 'recipe',
array(
'labels' => array(
'name' => __( 'Recipes', 'nelio' ),
'singular_name' => __( 'Recipe', 'nelio' )
),
'public' => true,
'has_archive' => true,
)
);
}
add_action( 'init', 'create_post_type' );
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.