Last active
February 11, 2019 11:26
-
-
Save mariuskroh/66738569f106385881fb to your computer and use it in GitHub Desktop.
register multiple post types
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
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