wp_dropdown_users
Filter HookDescription
Filters the wp_dropdown_users() HTML output.Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1845 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$output
|
HTML output generated by wp_dropdown_users(). |
Usage Examples
Basic Usage
<?php
// Hook into wp_dropdown_users
add_filter('wp_dropdown_users', 'my_custom_filter', 10, 1);
function my_custom_filter($output) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-includes/user.php:1845
- How this hook is used in WordPress core
<?php
1840 *
1841 * @since 2.3.0
1842 *
1843 * @param string $output HTML output generated by wp_dropdown_users().
1844 */
1845 $html = apply_filters( 'wp_dropdown_users', $output );
1846
1847 if ( $parsed_args['echo'] ) {
1848 echo $html;
1849 }
1850 return $html;
PHP Documentation
<?php
/**
* Filters the wp_dropdown_users() HTML output.
*
* @since 2.3.0
*
* @param string $output HTML output generated by wp_dropdown_users().
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/user.php
Related Hooks
Related hooks will be displayed here in future updates.