WC_Product_CSV_Exporter::set_product_category_to_export() public WC 3.5.0
Product category to export
{} Это метод класса: WC_Product_CSV_Exporter{}
Хуков нет.
Возвращает
null.
Использование
$WC_Product_CSV_Exporter = new WC_Product_CSV_Exporter(); $WC_Product_CSV_Exporter->set_product_category_to_export( $product_category_to_export );
- $product_category_to_export(строка) (обязательный)
- Product category slug to export, empty string exports all.
Список изменений
С версии 3.5.0 | Введена. |
Код WC_Product_CSV_Exporter::set_product_category_to_export() WC Product CSV Exporter::set product category to export WC 5.0.0
public function set_product_category_to_export( $product_category_to_export ) {
$this->product_category_to_export = array_map( 'sanitize_title_with_dashes', $product_category_to_export );
}