get_available_payment_options()
Get available payment gateway options Get’s available payment gateways options IE: single, recurring
Contents
Return Return
(void)
Source Source
File: includes/llms.template.functions.php
function get_available_payment_options() { $_available_options = array(); $option_prefix = 'lifterlms_gateway_enable_'; $options = array( 'paypal', ); foreach ( $options as $option ) { $single_option = ''; $single_option = get_option( $option_prefix . $option, 'no' ); if ( 'yes' === $single_option ) { array_push( $_available_options, $option ); } llms_get_template( 'checkout/' . $option . '.php' ); } }
Expand full source code Collapse full source code View on GitHub