Created
August 21, 2018 07:27
-
-
Save avillegasn/f40c6c43d23d67fa622349e0421ec6c2 to your computer and use it in GitHub Desktop.
This file contains 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
<?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