Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created March 22, 2017 22:55
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/f1a8696d8c86242ca2c9d28e83c45465 to your computer and use it in GitHub Desktop.
Save thomasplevy/f1a8696d8c86242ca2c9d28e83c45465 to your computer and use it in GitHub Desktop.
<?php // don't copy this line to your functions.php file
/**
* Customize the number of courses displayed on each page of the "View Courses" endpoint on the LifterLMS Student Dashboard
* @param int $count default number of courses (10)
* @return int
*/
function my_custom_llms_dashboard_recent_courses_count( $count ) {
return 25;
}
add_filter( 'llms_dashboard_courses_per_page', '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