WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::supports() public 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.

{} It's a method of the class: WC_Payment_Gateway{}

Hooks from the method
Return

true|false. True if the gateway supports the feature, false otherwise.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->supports( $feature );
$feature(string) (required)
string The name of a feature to test support for.

Changelog

Since 1.5.7 Introduced.

Code of WC_Payment_Gateway::supports() WC 5.5.2

<?php
public function supports( $feature ) {
	return apply_filters( 'woocommerce_payment_gateway_supports', in_array( $feature, $this->supports ), $feature, $this );
}