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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 );