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.

ParameterTypeDescription
$is_availableboolActual availability
$itemarray or WC_Order_ItemThe WooCommerce cart or order item

Changelog

VersionDescription
3.0.0Introduced

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);