woocommerce_updated_product_stock 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_stock', 'action_function_name_2837' ); function action_function_name_2837( $product_id_with_stock ){ // action... }
- $product_id_with_stock(int)
- Product ID that was updated directly.
Changelog
Since 3.6 | Introduced. |
Where the hook is called
woocommerce_updated_product_stock
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 1442
do_action( 'woocommerce_updated_product_stock', $product_id_with_stock );