WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

AbstractSchema::remove_arg_options() protected WC 1.0

Recursive removal of arg_options.

{} It's a method of the class: AbstractSchema{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->remove_arg_options( $properties );
$properties(array) (required)
Schema properties.

Code of AbstractSchema::remove_arg_options() WC 5.8.0

protected function remove_arg_options( $properties ) {
	return array_map(
		function( $property ) {
			if ( isset( $property['properties'] ) ) {
				$property['properties'] = $this->remove_arg_options( $property['properties'] );
			} elseif ( isset( $property['items']['properties'] ) ) {
				$property['items']['properties'] = $this->remove_arg_options( $property['items']['properties'] );
			}
			unset( $property['arg_options'] );
			return $property;
		},
		(array) $properties
	);
}