learndash_lesson_course_post_options

apply_filters( 'learndash_lesson_course_post_options',  array $options,  array $settings )

Filters query arguments for getting course lesson.


Description #


Parameters #

$options

(array) Query Arguments.

$settings

(array) Lesson settings


Source #

File: includes/class-ld-lms.php


Examples #

 <?php
/**
 * Example usage for learndash_lesson_course_post_options filter.
 */
add_filter(
	'learndash_lesson_course_post_options',
	function( $options, $settings ) {
		// May add any custom logic using $options, $settings.

		// Always return $options.
		return $options;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.