Merge pull request #15528 from Chouby/importer_action

[3.1] Add action after a product has been imported
This commit is contained in:
Mike Jolley 2017-06-09 14:17:41 +01:00 committed by GitHub
commit 5fe26e689c
1 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,8 @@ abstract class WC_Product_Importer implements WC_Importer_Interface {
$object = apply_filters( 'woocommerce_product_import_pre_insert_product_object', $object, $data );
$object->save();
do_action( 'woocommerce_product_import_inserted_product_object', $object, $data );
return array(
'id' => $object->get_id(),
'updated' => $updating,