Browse: Home / Hooks /

learndash-lesson-pagination-before

do_action( 'learndash-lesson-pagination-before',  int $lesson_id,  int $course_id,  int $user_id )

Fires before the course pagination.


Description #


Parameters #

$lesson_id

(int) Lesson ID.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/lesson/listing.php


Examples #

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

 <?php
/**
 * Example usage for learndash-lesson-pagination-before action.
 */
add_action(
	'learndash-lesson-pagination-before',
	function( $lesson_id, $course_id, $user_id ) {
		// May add any custom logic using $lesson_id, $course_id, $user_id

	},
	10,
	3
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.