LLMS_Student_Dashboard::get_tabs_for_nav()
Retrieve dashboard tab data as required to display navigation links Excludes any endpoint disabled by deleting the slug from account settings
Return Return
(array)
Source Source
File: includes/class.llms.student.dashboard.php
public static function get_tabs_for_nav() { $tabs = array(); foreach ( self::get_tabs() as $var => $data ) { if ( isset( $data['url'] ) ) { $url = $data['url']; } elseif ( ! empty( $data['endpoint'] ) ) { $url = llms_get_endpoint_url( $var, '', llms_get_page_url( 'myaccount' ) ); } else { continue; } $tabs[ $var ] = array( 'url' => $url, 'title' => $data['title'], ); } return apply_filters( 'llms_get_student_dashboard_tabs_for_nav', $tabs ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.5 | Introduced. |