Automattic\WooCommerce\Blocks\AIContent

UpdatePatterns::pattern_has_images()privateWC 1.0

Returns whether the pattern has images.

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

Хуков нет.

Возвращает

true|false. True if the pattern has images, false otherwise.

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

// private - только в коде основоного (родительского) класса
$result = $this->pattern_has_images( $pattern ): bool;
$pattern(массив) (обязательный)
The array representing the pattern.

Код UpdatePatterns::pattern_has_images() WC 9.8.5

private function pattern_has_images( array $pattern ): bool {
	return isset( $pattern['images_total'] ) && $pattern['images_total'] > 0;
}