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 #
- $query_arguments
-
(array) Query arguments to be used in get_terms.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_course_list_{$post_type_slug}_category_args filter. */ add_filter( 'learndash_course_list_course_category_args', function( $query_arguments ) { // May add any custom logic using $query_arguments. // Always return $query_arguments. return $query_arguments; } );