LLMS_Settings_Checkout::get_sections()

Get the page sections


Return Return

(array)


Top ↑

Source Source

File: includes/admin/settings/class.llms.settings.checkout.php

	public function get_sections() {

		$sections = array();

		$gateways = LLMS()->payment_gateways()->get_payment_gateways();

		foreach ( $gateways as $id => $gateway ) {
			$sections[ $id ] = $gateway->get_admin_title();
		}

		asort( $sections );

		$sections = array_merge(
			array(
				'main' => __( 'Checkout Settings', 'lifterlms' ),
			),
			$sections
		);

		return apply_filters( 'llms_checkout_settings_sections', $sections );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.17.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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