woocommerce_updated_product_stock

woocommerce_updated_product_stock

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_updated_product_stock') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1714
    		 *
    		 * @since 3.6
    		 * @param int $product_id_with_stock Product ID that was updated directly.
    		 */
    		do_action( 'woocommerce_updated_product_stock', $product_id_with_stock );
    
    		return $new_stock;
    	}
    
    	/**
    	 * Update a product's sale count directly.