Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save actual-saurabh/59aa9284767521f49ca7a4c2b1f89c22 to your computer and use it in GitHub Desktop.
Save actual-saurabh/59aa9284767521f49ca7a4c2b1f89c22 to your computer and use it in GitHub Desktop.
Remove Dashboard Index
<?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