Automattic\WooCommerce\Blocks\AIContent

UpdatePatterns::pattern_has_images()privateWC 1.0

Returns whether the pattern has images.

Method of the class: UpdatePatterns{}

No Hooks.

Return

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

Usage

// private - for code of main (parent) class only
$result = $this->pattern_has_images( $pattern ): bool;
$pattern(array) (required)
The array representing the pattern.

UpdatePatterns::pattern_has_images() code WC 9.8.1

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