learndash_course_list_category_args

apply_filters( 'learndash_course_list_category_args',  array $query_arguments )

Filters course list category query arguments.


Description #


Parameters #

$query_arguments

(array) Query arguments to be used in get_categories.


Source #

File: includes/shortcodes/ld_course_list.php


Examples #

 <?php
/**
 * Example usage for learndash_course_list_category_args filter.
 */
add_filter(
	'learndash_course_list_category_args',
	function( $args = array() ) {
		// Example 1 - Change the default 'order' to DESC
		$args['order'] = 'DESC';

		// always return the $args array
		return $args;
	},
	10,
	1
);