WordPress at a glance
filter is not described

woocommerce_prevent_adjust_line_item_product_stock filter-hook . WC 3.7.1

Prevent adjust line item product stock.

Usage

add_filter( 'woocommerce_prevent_adjust_line_item_product_stock', 'filter_function_name_1343', 10, 3 );
function filter_function_name_1343( $prevent, $item, $item_quantity ){
	// filter...

	return $prevent;
}
$prevent(true|false)
If should prevent.
$item(WC_Order_Item)
Item object.
$item_quantity(int)
Optional quantity to check against.

Changelog

Since 3.7.1 Introduced.

Where the hook is called

wc_maybe_adjust_line_item_product_stock()
woocommerce_prevent_adjust_line_item_product_stock
woocommerce/includes/admin/wc-admin-functions.php 205
if ( apply_filters( 'woocommerce_prevent_adjust_line_item_product_stock', false, $item, $item_quantity ) ) {

Where in WP core the hook is used WooCommerce

Usage not found.