LLMS_Student_Dashboard::modify_dashboard_title( string $title )
Handle modification of the default dashboard title for certain pages and sub pages
Parameters Parameters
- $title
-
(string) (Required) default title HTML
Return Return
(string)
Source Source
File: includes/class.llms.student.dashboard.php
$tabs = self::get_tabs(); if ( isset( $tabs[ $endpoint ] ) && ! empty( $tabs[ $endpoint ]['endpoint'] ) ) { return true; } return false; } /** * Handle modification of the default dashboard title for certain pages and sub pages * * @param string $title default title HTML * @return string * @since 3.24.0 * @version 3.24.0 */ public function modify_dashboard_title( $title ) { global $wp_query; $tab = self::get_current_tab( 'tab' ); if ( 'my-grades' === $tab && ! empty( $wp_query->query['my-grades'] ) ) { $course = get_posts( array( 'name' => $wp_query->query['my-grades'], 'post_type' => 'course', )
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Introduced. |