クラス WP_Meta_Query::__construct() コンストラクタ
2014/12/25
WP_Meta_Query::__construct() コンストラクタ
定義ファイル :/blog/wp-includes/meta.php 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | public function __construct( $meta_query = false ) { if ( !$meta_query ) return; if ( isset( $meta_query['relation'] ) && strtoupper( $meta_query['relation'] ) == 'OR' ) { $this->relation = 'OR'; } else { $this->relation = 'AND'; } $this->queries = array(); foreach ( $meta_query as $key => $query ) { if ( ! is_array( $query ) ) continue; $this->queries[] = $query; } } |