Browse: Home / Hooks /


apply_filters( "learndash_course_list_{$post_type_slug}_category_args",  array $query_arguments )

Filters course list terms query arguments according to post type slug.

Description #

The dynamic part of the hook $post_type_slug refers to the slug of any post type.

Parameters #


(array) Query arguments to be used in get_terms.

Source #

File: includes/shortcodes/ld_course_list.php

Examples #

 * Example usage for learndash_course_list_{$post_type_slug}_category_args filter.
	function( $query_arguments ) {
		// May add any custom logic using $query_arguments.

		// Always return $query_arguments.
		return $query_arguments;