LLMS_Payment_Gateways::get_supporting_gateways( string $feature )
Retrieves all enabled gateways which support the specified gateway feature.
Description Description
See also See also
Parameters Parameters
- $feature
-
(string) (Required) A gateway feature string.
Return Return
(array)
Source Source
File: includes/class.llms.payment.gateways.php
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | public function get_supporting_gateways( $feature ) { $gateways = array (); foreach ( $this ->get_enabled_payment_gateways() as $id => $gateway ) { if ( $gateway ->supports( $feature ) ) { $gateways [ $id ] = $gateway ; } } /** * Filters the list of gateways supporting the specified feature. * * Hook description. * * @since 3.10.0 * * @param LLMS_Payment_Gateway[] $gateways Array of supporting gateways. * @param string $feature The requested gateway feature string. */ return apply_filters( 'lifterlms_supporting_payment_gateways' , $gateways , $feature ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.10.0 | Introduced. |