Skip to content

Instantly share code, notes, and snippets.

@mariuskroh
Last active February 11, 2019 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariuskroh/66738569f106385881fb to your computer and use it in GitHub Desktop.
Save mariuskroh/66738569f106385881fb to your computer and use it in GitHub Desktop.
register multiple post types
function my_create_post_types() {
register_post_type( 'my_post_type', $args);
register_post_type( 'my_other_post_type', $args);
}
add_action( 'init', 'my_create_post_types' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment