WC_Payment_Gateway::supports( string $feature )
Check if a gateway supports a given feature.
Description Description
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.
Parameters Parameters
- $feature
-
(Required) string The name of a feature to test support for.
Return Return
(bool) True if the gateway supports the feature, false otherwise.
Source Source
File: includes/abstracts/abstract-wc-payment-gateway.php
public function supports( $feature ) { return apply_filters( 'woocommerce_payment_gateway_supports', in_array( $feature, $this->supports ), $feature, $this ); }
Changelog Changelog
Version | Description |
---|---|
1.5.7 | Introduced. |