Automattic\WooCommerce\Blocks\AIContent
UpdatePatterns::pattern_has_images()
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() 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; }