Skip to content

Instantly share code, notes, and snippets.

Avatar

Stewart Walter PhatKoala

View GitHub Profile
View register-post-type.php
<?php
/* Register custom post types on the 'init' hook. */
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 0.1.0
* @access public