apply_filters( 'ld_course_list', string $output, array $atts, array $filter )
Filters HTML output of category dropdown.
Description #
Parameters #
- $output
-
(string) HTML output of category dropdown.
- $atts
-
(array) Shortcode attributes.
- $filter
-
(array) Arguments to retrieve posts.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for ld_course_list filter.
*/
add_filter(
'ld_course_list',
function( $output, $atts, $filter ) {
// May add any custom logic using $output, $atts, $filter.
// Always return $output.
return $output;
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |