Property | Type | Description | |
---|---|---|---|
$args | array | The query arguments. | |
$default_args | array | The default query arguments. | |
$query | WP_Term_Query | WP_Query | The query instance. | |
$type | string | The query type. |
Method | Description | |
---|---|---|
__construct ( array $args = [], string $type = 'post' ) | Query constructor. | |
__get ( string $key ) : mixed | Dynamically access query properties. | |
first ( ) : array | Get first item of result. | |
get_query_args ( ) : array | Get real query arguments without Papi Query specific arguments. | |
get_query_class ( ) : WP_Query | WP_Term_Query | Get query object for right query type. | |
get_result ( ) : array | Get result. | |
last ( ) : array | Get last item of result. | |
parse_args ( array $args ) | Parse query arguments. |
Method | Description | |
---|---|---|
parse_post_args ( array $args ) : array | Parse post query arguments. | |
parse_term_args ( array $args ) : array | Parse term query arguments. |
public __construct ( array $args = [], string $type = 'post' ) | ||
$args | array | |
$type | string |
public get_query_args ( ) : array | ||
return | array |
public get_query_class ( ) : WP_Query | WP_Term_Query | ||
return | WP_Query | WP_Term_Query |
protected parse_post_args ( array $args ) : array | ||
$args | array | |
return | array |
protected parse_term_args ( array $args ) : array | ||
$args | array | |
return | array |
protected array $default_args | ||
return | array |
protected WP_Term_Query|WP_Query $query | ||
return | WP_Term_Query | WP_Query |