Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
ProductMapper::set_variation_fields
Set fields to include in the variation mapping.
Method of the class: ProductMapper{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ProductMapper = new ProductMapper(); $ProductMapper->set_variation_fields( ?string $fields ): void;
- ?string $fields
- .
Default:null
Changelog
| Since 10.5.0 | Introduced. |
ProductMapper::set_variation_fields() ProductMapper::set variation fields code WC 10.7.0
public function set_variation_fields( ?string $fields = null ): void {
$this->variation_fields = $fields;
$this->variations_request = null; // Invalidate the cached request.
}