WordPress at Your Fingertips
action is not described

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_675' );
function action_function_name_675( $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

WC_Product_Data_Store_CPT::update_product_stock()
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 );

Where in WP core the hook is used WooCommerce

Usage not found.