Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function create_post_type() {
register_post_type( 'recipe',
'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.