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
- $endpoint
-
(string) (Required) endpoint slug (eg: my-courses)
Return Return
(bool)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.19.0 | Introduced. |