Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldsSchema
Validation::schema_is_unwrapped
Check if the schema is unwrapped (has cart, checkout, customer, as top level keys).
Метод класса: Validation{}
Хуков нет.
Возвращает
true|false.
Использование
$result = Validation::schema_is_unwrapped( $schema );
- $schema(массив) (обязательный)
- The schema to check.
Код Validation::schema_is_unwrapped() Validation::schema is unwrapped WC 11.0.1
private static function schema_is_unwrapped( $schema ) {
return isset( $schema['cart'] ) || isset( $schema['checkout'] ) || isset( $schema['customer'] );
}