Automattic\WooCommerce\Internal\Abilities\Domain

ProductDelete::get_input_schemaprivate staticWC 1.0

Get the ability input schema.

Method of the class: ProductDelete{}

No Hooks.

Returns

Array.

Usage

$result = ProductDelete::get_input_schema(): array;

ProductDelete::get_input_schema() code WC 11.0.1

private static function get_input_schema(): array {
	return array(
		'type'                 => 'object',
		'properties'           => array(
			'id'    => array(
				'type'    => 'integer',
				'minimum' => 1,
			),
			'force' => array(
				'type'        => 'boolean',
				'description' => __(
					'Permanently delete the product. Defaults to false, which moves the product to trash.',
					'woocommerce'
				),
				'default'     => false,
			),
		),
		'required'             => array( 'id' ),
		'additionalProperties' => false,
	);
}