Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active March 22, 2017 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/b1feaf56858d3e946d3c0271f4d4d3eb to your computer and use it in GitHub Desktop.
Save thomasplevy/b1feaf56858d3e946d3c0271f4d4d3eb to your computer and use it in GitHub Desktop.
<?php // don't copy this line to your functions.php file
/**
* Customize the number of "recent courses" displayed on the LifterLMS Student Dashboard
* @param int $count default number of courses (3)
* @return int
*/
function my_custom_llms_dashboard_recent_courses_count( $count ) {
return 10;
}
add_filter( 'llms_dashboard_recent_courses_count', 'my_custom_llms_dashboard_recent_courses_count' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment