learndash_get_lesson_list_args

apply_filters( 'learndash_get_lesson_list_args',  array $lesson_args,  int $id,  int $course_id )

Filters query arguments for getting the lesson list.


Description #


Parameters #

$lesson_args

(array) An array of arguments for getting lesson list.

$id

(int) ID of resource.

$course_id

(int) Course ID.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_get_lesson_list_args filter.
 */
add_filter(
	'learndash_get_lesson_list_args',
	function( $lesson_args, $id, $course_id ) {
		// May add any custom logic using $lesson_args, $id, $course_id.

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

Changelog #

Changelog
Version Description
2.5.7 Introduced.