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.
Contents
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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 );