Created
March 22, 2017 22:55
-
-
Save thomasplevy/f1a8696d8c86242ca2c9d28e83c45465 to your computer and use it in GitHub Desktop.
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 // 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