Skip to content

How To Remove Capital P Dangit Filter From WordPress

We all use WordPress to power our websites and blogs, but some of you may have never noticed that it’s a capital P in WordPress, not a small p, dangit! Whenever you write a WordPress in your WordPress powered website with a small p, WordPress automatically converts the small p to a capital P.

[alert style=”green”] There’s a website called capitalp.org about WordPress’ capital P. [/alert]

However, you can easily remove capital P dangit filter from WordPress to write and use WordPress with a small p, dangit! It doesn’t make sense to remove this filter.

Just add following snippet to current theme’s functions.php file:

// Remove Capital P Dangit Filter From Post Title.
remove_filter( 'the_title', 'capital_P_dangit', 11);

// Remove Capital P Dangit Filter From Post Meta Title.
remove_filter( 'wp_title', 'capital_P_dangit', 11);

// Remove Capital P Dangit Filter From Post Content.
remove_filter( 'the_content', 'capital_P_dangit', 11);

// Remove Capital P Dangit Filter From Comments.
remove_filter( 'comment_text', 'capital_P_dangit', 31);

Leave a Reply

Your email address will not be published. Required fields are marked *