LLMS_Rest_Admin_Settings_Page::get_current_section()

Retrieve the id of the current tab/section


Description Description

Overrides parent function to set "keys" as the default section instead of the nonexistant "main".


Top ↑

Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/admin/class-llms-rest-admin-settings-page.php

	protected function get_current_section() {

		$current = parent::get_current_section();
		if ( 'main' === $current ) {
			$all     = array_keys( $this->get_sections() );
			$current = $all ? $all[0] : 'main';
		}
		return $current;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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