Automattic\WooCommerce\Blocks
QueryFilters::add_query_clauses()
Add conditional query clauses based on the filter params in query vars.
Метод класса: QueryFilters{}
Хуков нет.
Возвращает
Массив
.
Использование
$QueryFilters = new QueryFilters(); $QueryFilters->add_query_clauses( $args, $wp_query );
- $args(массив) (обязательный)
- Query args.
- $wp_query(\WP_Query) (обязательный)
- WP_Query object.
Код QueryFilters::add_query_clauses() QueryFilters::add query clauses WC 9.4.2
public function add_query_clauses( $args, $wp_query ) { $args = $this->stock_filter_clauses( $args, $wp_query ); $args = $this->price_filter_clauses( $args, $wp_query ); $args = $this->attribute_filter_clauses( $args, $wp_query ); return $args; }