Last active
October 28, 2017 15:01
-
-
Save ann71727/ca444491d353e5542a1d25948841487b to your computer and use it in GitHub Desktop.
List All Post Type
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 | |
/* | |
* List All Post Type | |
* https://v123.tw | |
*/ | |
function v123_get_all_post_types(){ | |
global $wp_post_types; | |
print_r($wp_post_types); | |
} | |
add_action('init','v123_get_all_post_types'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment