Browse: Home / Hooks /

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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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

	},
	10,
	2
);