WC_Widget_Layered_Nav::get_filtered_term_product_counts()
Count products within certain terms, taking the main WP query into consideration.
This query allows counts to be generated based on the viewed products, not all products.
Метод класса: WC_Widget_Layered_Nav{}
Хуков нет.
Возвращает
Массив
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_filtered_term_product_counts( $term_ids, $taxonomy, $query_type );
- $term_ids(массив) (обязательный)
- Term IDs.
- $taxonomy(строка) (обязательный)
- Taxonomy.
- $query_type(строка) (обязательный)
- Query Type.
Код WC_Widget_Layered_Nav::get_filtered_term_product_counts() WC Widget Layered Nav::get filtered term product counts WC 9.5.1
protected function get_filtered_term_product_counts( $term_ids, $taxonomy, $query_type ) { return wc_get_container()->get( Filterer::class )->get_filtered_term_product_counts( $term_ids, $taxonomy, $query_type ); }