WC_Payment_Gateway::supports PHP Méthode

supports() public méthode

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.
Since: 1.5.7
public supports ( string $feature ) : boolean
$feature string string The name of a feature to test support for.
Résultat boolean True if the gateway supports the feature, false otherwise.
    public function supports($feature)
    {
        return apply_filters('woocommerce_payment_gateway_supports', in_array($feature, $this->supports) ? true : false, $feature, $this);
    }