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

58
59
60
61
62
63
64
65
66
67
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.