woocommerce_product_importer_before_set_parsed_data
Использование
add_action( 'woocommerce_product_importer_before_set_parsed_data', 'wp_kama_woocommerce_product_importer_before_set_parsed_data_action', 10, 2 ); /** * Function for `woocommerce_product_importer_before_set_parsed_data` action-hook. * * @param $row * @param $mapped_keys * * @return void */ function wp_kama_woocommerce_product_importer_before_set_parsed_data_action( $row, $mapped_keys ){ // action... }
- $row
- -
- $mapped_keys
- -
Где вызывается хук
woocommerce_product_importer_before_set_parsed_data
woocommerce/includes/import/class-wc-product-csv-importer.php 1006
do_action( 'woocommerce_product_importer_before_set_parsed_data', $row, $mapped_keys );