sequra_is_item_available_in_checkout
Hook
Filter
Filter if product is available to be paid with seQura
Description
The availability of seQura payment methods can be affected by the presence of products in the form of cart or order items which have been excluded using the configuration options that the plugin provides. This filter allows modifying the resulting availability for a certain product.
Parameter | Type | Description |
---|---|---|
$is_available | bool | Actual availability |
$item | array or WC_Order_Item | The WooCommerce cart or order item |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced |
Usage Example
add_filter('sequra_is_item_available_in_checkout', function($is_available, $item){
$is_available = ... // Modify the default value
return $is_available;
}, 10, 2);
Updated about 1 month ago