wp_dropdown_cats
Filter HookDescription
Filters the taxonomy drop-down output.Hook Information
File Location |
wp-includes/category-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 479 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$output
|
HTML output. |
array
|
$parsed_args
|
Arguments used to build the drop-down. |
Usage Examples
Basic Usage
<?php
// Hook into wp_dropdown_cats
add_filter('wp_dropdown_cats', 'my_custom_filter', 10, 2);
function my_custom_filter($output, $parsed_args) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-includes/category-template.php:479
- How this hook is used in WordPress core
<?php
474 * @since 2.1.0
475 *
476 * @param string $output HTML output.
477 * @param array $parsed_args Arguments used to build the drop-down.
478 */
479 $output = apply_filters( 'wp_dropdown_cats', $output, $parsed_args );
480
481 if ( $parsed_args['echo'] ) {
482 echo $output;
483 }
484
PHP Documentation
<?php
/**
* Filters the taxonomy drop-down output.
*
* @since 2.1.0
*
* @param string $output HTML output.
* @param array $parsed_args Arguments used to build the drop-down.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/category-template.php
Related Hooks
Related hooks will be displayed here in future updates.