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.2

apply_filters('wp_dropdown_users_args') is found 1 times:

  • /wp-includes/user.php line 1713
    1709
    1710
    1711
    1712
    1713
    1714
    1715
    1716
    1717
    1718
    1719
    *
     * @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'] );