learndash_course_lessons_advance_progress_page

apply_filters( 'learndash_course_lessons_advance_progress_page',  boolean $advance_progress,  int $post_id,  int $user_id )

Filters whether to redirect the user to the next available lesson page in the course.


Description #


Parameters #

$advance_progress

(boolean) Whether to redirect user to next available lesson page.

$post_id

(int) Queried object post ID.

$user_id

(int) User ID.


Source #

File: includes/course/ld-course-functions.php


Examples #

 <?php
/**
 * Example usage for learndash_course_lessons_advance_progress_page filter.
 */
add_filter(
	'learndash_course_lessons_advance_progress_page',
	function( $advance_progress, $post_id, $user_id ) {
		// May add any custom logic using $advance_progress, $post_id, $user_id.

		// Always return $advance_progress.
		return $advance_progress;
	},
	10,
	3
);