WordPress at Your Fingertips
filter is not described

woocommerce_update_product_stock_query filter-hook . WC 1.0

Usage

add_filter( 'woocommerce_update_product_stock_query', 'filter_function_name_4271', 10, 4 );
function filter_function_name_4271( $sql, $product_id_with_stock, $stock_quantity, $string ){
	// filter...

	return $sql;
}
$sql
-
$product_id_with_stock
-
$stock_quantity
-
$string
-

Where the hook is called

WC_Product_Data_Store_CPT::set_product_stock()
woocommerce_update_product_stock_query
WC_Product_Data_Store_CPT::update_product_stock()
woocommerce_update_product_stock_query
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 1357
$sql = apply_filters( 'woocommerce_update_product_stock_query', $sql, $product_id_with_stock, $stock_quantity, 'set' );
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 1426
$sql = apply_filters( 'woocommerce_update_product_stock_query', $sql, $product_id_with_stock, $new_stock, $operation );

Where in WP core the hook is used WooCommerce

Usage not found.