woocommerce_api_edit_product

woocommerce_api_edit_product

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_edit_product') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 392
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
        }
     
        $product->save();
     
        do_action( 'woocommerce_api_edit_product', $id, $data );
     
        // Clear cache/transients.
        wc_delete_product_transients( $id );
     
        return $this->get_product( $id );
    } catch ( WC_Data_Exception $e ) {
  • /includes/legacy/api/v3/class-wc-api-products.php line 451
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
        }
     
        $product->save();
     
        do_action( 'woocommerce_api_edit_product', $id, $data );
     
        // Clear cache/transients.
        wc_delete_product_transients( $id );
     
        return $this->get_product( $id );
    } catch ( WC_Data_Exception $e ) {