# Remove "Protected:" and "Private:" From Titles

> Drops the "Protected:" and "Private:" words WordPress adds in front of the titles of password-protected and private posts.

- Type: PHP
- Runs: Run everywhere
- Category: [Content](https://wpide.com/library/category/content/)
- Tags: titles, private, protected
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/remove-protected-private-title-prefix/

## Code

```php
add_filter( 'protected_title_format', function () {
    return '%s';
} );

add_filter( 'private_title_format', function () {
    return '%s';
} );
```

## How to use it

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