Automattic\WooCommerce\Api\InputTypes\Products
UpdateProductInput{}└─ BaseProductInput
[Description( 'Data for updating an existing product.' )]No Hooks.
Usage
$UpdateProductInput = new UpdateProductInput(); // use class methods
Methods
No Methods in class.UpdateProductInput{} 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;
}