LLMS_Student_Dashboard::is_endpoint_enabled( string $endpoint )

Determine if an endpoint is disabled If the custom endpoint option is an empty string (blank) the settings define the endpoint as disabled

Parameters Parameters


(string) (Required) endpoint slug (eg: my-courses)

Top ↑

Return Return


Top ↑

Source Source

File: includes/class.llms.student.dashboard.php

	public static function is_endpoint_enabled( $endpoint ) {

		$tabs = self::get_tabs();
		if ( isset( $tabs[ $endpoint ] ) && ! empty( $tabs[ $endpoint ]['endpoint'] ) ) {
			return true;

		return false;


Top ↑

Changelog Changelog

Version Description
3.19.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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