Browse: Home / Hooks /

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 #

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

 <?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 Use 'learndash_listing_filter_query_args' instead.
2.2.1 Introduced. This hook has been deprecated. Use {@see 'learndash_listing_filter_query_args'} instead.