woocommerce_product_import_inserted_product_object
Usage
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
- -
Where the hook is called
woocommerce_product_import_inserted_product_object
woocommerce/includes/import/abstract-wc-product-importer.php 293
do_action( 'woocommerce_product_import_inserted_product_object', $object, $data );
Where the hook is used in WooCommerce
woocommerce/includes/admin/class-wc-admin-brands.php 103
add_filter( 'woocommerce_product_import_inserted_product_object', array( $this, 'process_import' ), 10, 2 );