Created
July 23, 2018 17:27
-
-
Save actual-saurabh/59aa9284767521f49ca7a4c2b1f89c22 to your computer and use it in GitHub Desktop.
Remove Dashboard Index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not copy this line | |
// Copy from under this line and paste into your child theme's functions.php | |
add_filter( 'llms_get_student_dashboard_tabs' , 'llms_remove_dashboard_index' ); | |
function llms_remove_dashboard_index( $endpoints ){ | |
$endpoints['dashboard']['content'] = $endpoints['view-courses']['content']; | |
$endpoints['dashboard']['title'] = $endpoints['view-courses']['title']; | |
unset($endpoints['view-courses']); | |
return $endpoints; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment