Automattic\WooCommerce\Api\InputTypes\Products

UpdateProductInput{}WC 1.0└─ BaseProductInput

[Description( 'Data for updating an existing product.' )]

No Hooks.

Usage

$UpdateProductInput = new UpdateProductInput();
// use class methods

Methods

No Methods in class.

UpdateProductInput{} code WC 10.9.1

class UpdateProductInput extends BaseProductInput {
	#[Description( 'The ID of the product to update.' )]
	public int $id;

	#[Description( 'The product name.' )]
	public ?string $name = null;
}