WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Query::remove_product_query_filters() public WC 1.0

Pre_get_posts above may adjust the main query to add WooCommerce logic. When this query is done, we need to ensure all custom filters are removed.

This is done here during the_posts filter. The input is not changed.

{} Это метод класса: WC_Query{}

Хуков нет.




$WC_Query = new WC_Query();
$WC_Query->remove_product_query_filters( $posts );
$posts(массив) (обязательный)
Posts from WP Query.

Код WC_Query::remove_product_query_filters() WC 5.6.0

public function remove_product_query_filters( $posts ) {
	remove_filter( 'posts_clauses', array( $this, 'price_filter_post_clauses' ), 10, 2 );
	return $posts;