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

WC_Query::adjust_posts_count() public WC 4.4.0

This function used to be hooked to found_posts and adjust the posts count when the filtering by attribute widget was used and variable products were present. Now it isn't hooked anymore and does nothing but return the input unchanged, since the pull request in which it was introduced has been reverted.

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

Хуков нет.

Возвращает

Число. Adjusted posts count.

Использование

$WC_Query = new WC_Query();
$WC_Query->adjust_posts_count( $count, $query );
$count(число) (обязательный)
Original posts count, as supplied by the found_posts filter.
$query(WP_Query) (обязательный)
The current WP_Query object.

Список изменений

С версии 4.4.0 Введена.

Код WC_Query::adjust_posts_count() WC 4.6.1

<?php
public function adjust_posts_count( $count, $query ) {
	return $count;
}