woocommerce_payment_gateway_supports filter-hook . WC 1.5.7
Check if a gateway supports a given feature.
Gateways should override this to declare support (or lack of support) for a feature. For backward compatibility, gateways support 'products' by default, but nothing else.
Usage
add_filter( 'woocommerce_payment_gateway_supports', 'filter_function_name_7516', 10, 2 ); function filter_function_name_7516( $feature, $that ){ // filter... return $feature; }
- $feature
- -
- $that
- -
Changelog
Since 1.5.7 | Introduced. |
Where the hook is called
woocommerce_payment_gateway_supports
woocommerce/includes/abstracts/abstract-wc-payment-gateway.php 418
return apply_filters( 'woocommerce_payment_gateway_supports', in_array( $feature, $this->supports ), $feature, $this );