# Stop Changing "Wordpress" to "WordPress"

> Disables the filter that silently rewrites the spelling of WordPress in titles, content and comments, which can break URLs or quoted text.

- Type: PHP
- Runs: Run everywhere
- Category: [Disable Features](https://wpide.com/library/category/disable-features/)
- Tags: formatting, content, disable
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-capital-p-dangit/

## Code

```php
foreach ( array( 'the_content', 'the_title', 'wp_title', 'document_title', 'comment_text', 'widget_text_content' ) as $wpide_filter ) {
    $wpide_priority = has_filter( $wpide_filter, 'capital_P_dangit' );

    if ( false !== $wpide_priority ) {
        remove_filter( $wpide_filter, 'capital_P_dangit', $wpide_priority );
    }
}
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Changing "Wordpress" to "WordPress"" 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/
