WC_Product_CSV_Exporter::set_product_types_to_export()
Product types to export.
Method of the class: WC_Product_CSV_Exporter{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product_CSV_Exporter = new WC_Product_CSV_Exporter(); $WC_Product_CSV_Exporter->set_product_types_to_export( $product_types_to_export );
- $product_types_to_export(array) (required)
- List of types to export.
Changelog
Since 3.1.0 | Introduced. |
WC_Product_CSV_Exporter::set_product_types_to_export() WC Product CSV Exporter::set product types to export code WC 9.4.2
public function set_product_types_to_export( $product_types_to_export ) { $this->product_types_to_export = array_map( 'wc_clean', $product_types_to_export ); }