mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 05:33:36 +09:00
Version 1.0.41
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
|
||||
Reference in New Issue
Block a user