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