learndash_lesson_post_options_filter

This hook has been deprecated. Use ‘learndash_listing_filter_query_args’ instead.

apply_filters_deprecated( 'learndash_lesson_post_options_filter',  array $query_options_topic,  string $post_type )

Filters course filter query arguments.


Description #


Parameters #

$query_options_topic

(array) An array of lesson filter query arguments.

$post_type

(string) Post type to check.


Source #

File: includes/admin/class-learndash-admin-posts-listing.php


Examples #

 <?php
/**
 * Example usage for learndash_element_lazy_load_admin_{$_GET['post_type']}_filters filter.
 */
add_filter(
	'learndash_element_lazy_load_admin_sfwd-topic_filters',
	function( $lazy_load ) {
		// May add any custom logic using $lazy_load.

		// Always return $lazy_load.
		return $lazy_load;
	}
);
 

Changelog #

Changelog
Version Description
3.2.3 Introduced.