LLMS_Payment_Gateway::supports( string $feature, LLMS_Order $order = null )

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.

$order

(LLMS_Order) (Optional) Instance of an LLMS_Order.

Default value: null


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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

	public function supports( $feature, $order = null ) {

		$supports = $this->get_supported_features();

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

		return false;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Added $order param, to be used when the feature also depends on an order property.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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