LLMS_Payment_Gateways::get_enabled_payment_gateways()

Get only enabled payment gateways.


Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.payment.gateways.php

	public function get_enabled_payment_gateways() {

		$gateways = array();
		foreach ( $this->get_payment_gateways() as $gateway ) {
			if ( $gateway->is_enabled() ) {
				$gateways[ $gateway->get_id() ] = $gateway;
			}
		}

		/**
		 * Filters the registered LifterLMS Payment Gateways which are explicitly enabled.
		 *
		 * @since 3.0.0
		 *
		 * @param LLMS_Payment_Gateway[] $gateways List of enabled gateways.
		 */
		return apply_filters( 'lifterlms_enabled_payment_gateways', $gateways );

	}


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.