WPSEO_Statistics_Service::filter_items()privateYoast 1.0

Filter items if they have a count of zero.

Метод класса: WPSEO_Statistics_Service{}

Хуков нет.

Возвращает

true|false. Whether or not the count is zero.

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

// private - только в коде основоного (родительского) класса
$result = $this->filter_items( $item );
$item(массив) (обязательный)
The item to potentially filter out.

Код WPSEO_Statistics_Service::filter_items() Yoast 22.4

private function filter_items( $item ) {
	return $item['count'] !== 0;
}