apply_filters( 'ld_categorydropdown', string $categorydropdown, array $atts, array $filter )
Filters the HTML output of category dropdown.
Description #
Parameters #
- $categorydropdown
-
(string) HTML markup for category dropdown
- $atts
-
(array) Combined and filtered attribute list.
- $filter
-
(array) Query arguments.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for ld_categorydropdown filter.
*/
add_filter(
'ld_categorydropdown',
function( $categorydropdown, $atts, $filter ) {
// May add any custom logic using $categorydropdown, $atts, $filter.
// Always return $categorydropdown.
return $categorydropdown;
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |