Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
ProductMapper::set_fields
Set fields to include in the product mapping.
Метод класса: ProductMapper{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductMapper = new ProductMapper(); $ProductMapper->set_fields( ?string $fields ): void;
- ?string $fields
- .
По умолчанию:null
Список изменений
| С версии 10.5.0 | Введена. |
Код ProductMapper::set_fields() ProductMapper::set fields WC 10.5.2
public function set_fields( ?string $fields = null ): void {
$this->fields = $fields;
$this->products_request = null; // Invalidate the cached request.
}