LLMS_Payment_Gateway::get_supported_features()

Get an array of features the gateway supports.


Return Return

(array)


Top ↑

Source Source

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

	public function get_supported_features() {

		if ( ! isset( $this->supports['modify_recurring_payments'] ) || is_null( $this->supports['modify_recurring_payments'] ) ) {
			$this->supports['modify_recurring_payments'] = $this->supports['recurring_payments'] ?? false;
		}

		/**
		 * Filters the gateway's supported features array
		 *
		 * @since 3.0.0
		 *
		 * @param array  $supports   Array of feature support.
		 * @param string $gateway_id The payment gateway's ID.
		 */
		return apply_filters( 'llms_get_gateway_supported_features', $this->supports, $this->id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Handle modify_recurring_payments depending on recurring_payments.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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