# Remove "WordPress" From Admin Page Titles

> Shortens browser tab titles in the admin and on the login page by dropping the trailing "— WordPress".

- Type: PHP
- Runs: Run everywhere
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: admin, branding, title
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/remove-wordpress-from-admin-titles/

## Code

```php
$wpide_strip_wp_title = function ( $title ) {
    return preg_replace( '/\s*(&#8212;|—|&mdash;)\s*WordPress\s*$/u', '', (string) $title );
};

add_filter( 'admin_title', $wpide_strip_wp_title, 99 );
add_filter( 'login_title', $wpide_strip_wp_title, 99 );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove "WordPress" From Admin Page Titles" 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/
