woocommerce_product_import_inserted_product_object

woocommerce_product_import_inserted_product_object

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_product_import_inserted_product_object') is found 1 times:

  • /includes/import/abstract-wc-product-importer.php line 286
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    $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,
        'is_variation' => $is_variation,
    );

See this hook used in plugins: