# Language Column in the Users List

> Shows each user's chosen dashboard language in Users > All Users, which helps when you send emails or support in their language.

- Type: PHP
- Runs: Admin only
- Category: [Multilingual](https://wpide.com/library/category/multilingual/)
- Tags: users, locale, columns
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/i18n-users-language-column/

## Code

```php
add_filter( 'manage_users_columns', function ( $columns ) {
    $columns['wpide_locale'] = __( 'Language' );

    return $columns;
} );

add_filter( 'manage_users_custom_column', function ( $output, $column, $user_id ) {
    if ( 'wpide_locale' !== $column ) {
        return $output;
    }

    $locale = get_user_meta( $user_id, 'locale', true );

    if ( ! $locale ) {
        return '<span style="color:#646970">' . esc_html__( 'Site default' ) . '</span>';
    }

    require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    static $names = null;
    if ( null === $names ) {
        $names = array( 'en_US' => 'English (United States)' );
        foreach ( (array) wp_get_available_translations() as $code => $data ) {
            $names[ $code ] = $data['native_name'];
        }
    }

    return esc_html( isset( $names[ $locale ] ) ? $names[ $locale ] : $locale );
}, 10, 3 );
```

## Notes

Users without their own choice show "Site default".

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Language Column in the Users List" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
