Browse: Home / Hooks /

learndash_topic_course_post_options

apply_filters( 'learndash_topic_course_post_options',  array $query_options,  array $settings )

Filters query arguments for getting course topic.


Description #


Parameters #

$query_options

(array) Query arguments.

$settings

(array) Course prerequisites settings.


Source #

File: includes/class-ld-lms.php


Examples #

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

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

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

Changelog #

Changelog
Version Description
2.2.0.2 Introduced.