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)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.17.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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