Version 1.0.41

This commit is contained in:
ultimatemember
2015-02-05 02:18:20 +02:00
parent f90388b4d6
commit 4c04769219
8 changed files with 121 additions and 37 deletions
+12
View File
@@ -3,7 +3,19 @@
class UM_Query {
function __construct() {
add_action('wp_loaded', array(&$this, 'get_post_types'), 100 );
}
/***
*** @get all post types
***/
function get_post_types() {
$array = get_post_types();
foreach( $array as $k => $v ) {
$this->get_post_types[] = $k;
}
}
/***