woocommerce_can_restore_order_stock

woocommerce_can_restore_order_stock

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_can_restore_order_stock') is found 1 times:

  • /includes/wc-stock-functions.php line 352
    		$order = wc_get_order( $order_id );
    	}
    
    	// We need an order, and a store with stock management to continue.
    	if ( ! $order || 'yes' !== get_option( 'woocommerce_manage_stock' ) || ! apply_filters( 'woocommerce_can_restore_order_stock', true, $order ) ) {
    		return;
    	}
    
    	$changes = array();
    
    	// Loop over all items.