LLMS_Payment_Gateways::get_enabled_payment_gateways()
Get only enabled payment gateways.
Return Return
(array)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |