learndash_course_lessons_list_pager

do_action( 'learndash_course_lessons_list_pager',  WP_Query $query_posts,  string $pager_context )

Fires after the course lesson list pagination.


Description #


Parameters #

$query_posts

(WP_Query) Course lesson list WP_Query object.

$pager_context

(string) The context where pagination is shown.


Source #

File: includes/class-ld-cpt.php


Examples #

 <?php
/**
 * Example usage for learndash_course_lessons_list_pager action.
 */
add_action(
	'learndash_course_lessons_list_pager',
	function( $query_posts, $pager_context ) {
		// May add any custom logic using $query_posts, $pager_context

		echo '<div>Custom content or markup</div>';
	},
	10,
	2
);