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