WordPress at a glance
filter is not described

woocommerce_query_for_reserved_stock filter-hook . WC 4.5.0

Filter: woocommerce_query_for_reserved_stock Allows to filter the query for getting reserved stock of a product.

Usage

add_filter( 'woocommerce_query_for_reserved_stock', 'filter_function_name_4145', 10, 3 );
function filter_function_name_4145( $query, $product_id, $exclude_order_id ){
	// filter...

	return $query;
}
$query(string)
The query for getting reserved stock of a product.
$product_id(int)
Product ID.
$exclude_order_id(int)
Order to exclude from the results.

Changelog

Since 4.5.0 Introduced.

Where the hook is called

ReserveStock::get_query_for_reserved_stock()
woocommerce_query_for_reserved_stock
woocommerce/src/Checkout/Helpers/ReserveStock.php 227
return apply_filters( 'woocommerce_query_for_reserved_stock', $query, $product_id, $exclude_order_id );

Where in WP core the hook is used WooCommerce

Usage not found.