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