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


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

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.