Automattic\WooCommerce\EmailEditor\Validator
Schema::nullable
Sets the schema as nullable.
Метод класса: Schema{}
Хуков нет.
Возвращает
static
.
Использование
$Schema = new Schema(); $Schema->nullable();
Код Schema::nullable() Schema::nullable WC 10.0.2
public function nullable() { $type = $this->schema['type'] ?? array( 'null' ); return $this->update_schema_property( 'type', is_array( $type ) ? $type : array( $type, 'null' ) ); }