LLMS_Payment_Gateways::get_enabled_payment_gateways()
Get only enabled payment gateways.
Return Return
(array)
Source Source
File: includes/class.llms.payment.gateways.php
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | 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. |