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.


Top ↑

Return Return

(bool) True if the gateway supports the feature, false otherwise.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.7 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.