Automattic\WooCommerce\Blocks\BlockTypes

ProductGalleryThumbnails::limit_thumbnails()protectedWC 1.0

Check if the thumbnails should be limited.

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

Хуков нет.

Возвращает

true|false.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->limit_thumbnails( $thumbnails_count, $number_of_thumbnails );
$thumbnails_count(int) (обязательный)
Current count of processed thumbnails.
$number_of_thumbnails(int) (обязательный)
Number of thumbnails configured to display.

Код ProductGalleryThumbnails::limit_thumbnails() WC 9.8.5

protected function limit_thumbnails( $thumbnails_count, $number_of_thumbnails ) {
	return $thumbnails_count > $number_of_thumbnails;
}