wp_dropdown_users_args

wp_dropdown_users_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_dropdown_users_args') is found 1 times:

  • /wp-includes/user.php line 1713
    	 *
    	 * @param array $query_args  The query arguments for get_users().
    	 * @param array $parsed_args The arguments passed to wp_dropdown_users() combined with the defaults.
    	 */
    	$query_args = apply_filters( 'wp_dropdown_users_args', $query_args, $parsed_args );
    
    	$users = get_users( $query_args );
    
    	$output = '';
    	if ( ! empty( $users ) && ( empty( $parsed_args['hide_if_only_one_author'] ) || count( $users ) > 1 ) ) {
    		$name = esc_attr( $parsed_args['name'] );