woocommerce_csv_product_import_mapped_columns хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_csv_product_import_mapped_columns', 'filter_function_name_3725', 10, 2 ); function filter_function_name_3725( $headers, $raw_headers ){ // filter... return $headers; }
- $headers
- -
- $raw_headers
- -
Где вызывается хук
woocommerce_csv_product_import_mapped_columns
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 599
return apply_filters( 'woocommerce_csv_product_import_mapped_columns', $headers, $raw_headers );
Где используется хук в ядре WooCommerce
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 164
add_filter( 'woocommerce_csv_product_import_mapped_columns', array( $this, 'auto_map_user_preferences' ), 9999 );