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 #

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

 * 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;