Created
May 21, 2013 18:49
-
-
Save lloc/5622253 to your computer and use it in GitHub Desktop.
Simplest Custom Post Type ever
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 simple_cpt_init() { | |
register_post_type( 'simple' ); | |
} | |
add_action( 'init', 'simple_cpt_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment