LLMS_Payment_Gateway::supports( string $feature )

Determine if a feature is supported by the gateway


Description Description

Looks at the $this->supports and ensures the submitted feature exists and is true.


Top ↑

Parameters Parameters

$feature

(string) (Required) Name of the supported feature.


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.payment.gateway.php

	public function supports( $feature ) {

		$supports = $this->get_supported_features();

		if ( isset( $supports[ $feature ] ) && $supports[ $feature ] ) {
			return true;
		}

		return false;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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