WordPress at a glance
filter is not described

woocommerce_exporter_product_types filter-hook . WC 5.1.0

Allow third-parties to filter the exportable product types.

Usage

add_filter( 'woocommerce_exporter_product_types', 'filter_function_name_5381' );
function filter_function_name_5381( $product_types ){
	// filter...

	return $product_types;
}
$product_types(array)

The product type key and label.

  • Product(string)
    type key - eg 'variable', 'simple' etc.

  • A(string)
    translated product label which appears in the export product type dropdown.

Changelog

Since 5.1.0 Introduced.

Where the hook is called

WC_Admin_Exporters::get_product_types()
woocommerce_exporter_product_types
woocommerce/includes/admin/class-wc-admin-exporters.php 216
return apply_filters( 'woocommerce_exporter_product_types', $product_types );

Where in WP core the hook is used WooCommerce

Usage not found.