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".
Return Return
(string)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |