woocommerce_product_import_before_process_item

woocommerce_product_import_before_process_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_product_import_before_process_item') is found 1 times:

  • /includes/import/abstract-wc-product-importer.php line 229
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    * @return array|WP_Error
     */
    protected function process_item( $data ) {
        try {
            do_action( 'woocommerce_product_import_before_process_item', $data );
            $data = apply_filters( 'woocommerce_product_import_process_item_data', $data );
     
            // Get product ID from SKU if created during the importation.
            if ( empty( $data['id'] ) && ! empty( $data['sku'] ) ) {
                $product_id = wc_get_product_id_by_sku( $data['sku'] );