wp_dropdown_cats
Filters the taxonomy drop-down output.
Usage
add_filter( 'wp_dropdown_cats', 'wp_kama_dropdown_cats_filter', 10, 2 );
/**
* Function for `wp_dropdown_cats` filter-hook.
*
* @param string $output HTML output.
* @param array $parsed_args Arguments used to build the drop-down.
*
* @return string
*/
function wp_kama_dropdown_cats_filter( $output, $parsed_args ){
// filter...
return $output;
}
- $output(string)
- HTML output.
- $parsed_args(array)
- Arguments used to build the drop-down.
Changelog
| Since 2.1.0 | Introduced. |
Where the hook is called
wp_dropdown_cats
wp-includes/category-template.php 479
$output = apply_filters( 'wp_dropdown_cats', $output, $parsed_args );