woocommerce_updated_product_price action-hook . WC 3.6
Fire an action for this direct update so it can be detected by other code.
Usage
add_action( 'woocommerce_updated_product_price', 'action_function_name_4767' ); function action_function_name_4767( $product_id ){ // action... }
- $product_id(int)
- Product ID that was updated directly.
Changelog
Since 3.6 | Introduced. |
Where the hook is called
woocommerce_updated_product_price
woocommerce_updated_product_price
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 613
do_action( 'woocommerce_updated_product_price', $product->get_id() );
woocommerce/includes/data-stores/class-wc-product-grouped-data-store-cpt.php 98
do_action( 'woocommerce_updated_product_price', $product->get_id() );