LLMS_Payment_Gateways::get_supporting_gateways( string $feature )

Retrieves all enabled gateways which support the specified gateway feature.


Description Description

See also See also


Top ↑

Parameters Parameters

$feature

(string) (Required) A gateway feature string.


Top ↑

Return Return

(array)


Top ↑

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 );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.10.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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