# English Dashboard for Administrators Only

> Keeps the dashboard in English for administrators while the site and everyone else's dashboard stay in the site language, handy for developers supporting non-English sites.

- Type: PHP
- Runs: Run everywhere
- Category: [Multilingual](https://wpide.com/library/category/multilingual/)
- Tags: admin-language, locale, administrators
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/i18n-english-admin-for-admins/

## Code

```php
$wpide_locale = 'en_US'; // Admin language for administrators.

add_filter( 'determine_locale', function ( $locale ) use ( $wpide_locale ) {
    if ( ! is_admin() || ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) {
        return $locale;
    }

    $own = get_user_meta( get_current_user_id(), 'locale', true );

    return $own ? $own : $wpide_locale;
} );
```

## Notes

A language chosen in the administrator's own profile still wins. Change $wpide_locale to use another admin language.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "English Dashboard for Administrators Only" 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/
