learndash_ld_course_list_query_args

apply_filters( 'learndash_ld_course_list_query_args',  array $filter,  array $atts )

Filters course list shortcode query arguments.


Description #


Parameters #

$filter

(array) Query arguments.

$atts

(array) Combined and filtered attribute list.


Source #

File: includes/shortcodes/ld_course_list.php


Examples #

 <?php
/**
 * Example usage for learndash_ld_course_list_query_args filter.
 */
add_filter(
	'learndash_ld_course_list_query_args',
	function( $filter, $atts ) {
		// May add any custom logic using $filter, $atts.

		// Always return $filter.
		return $filter;
	},
	10,
	2
);