Languages: English • Function Reference/capital P dangit 日本語 (Add your language)
Changes the incorrect capitalization of Wordpress into WordPress.
WordPress uses it to filter the content, the title and comment text.
<?php capital_P_dangit( $text ); ?>
If you prefer not to use these filters, here's how you can remove them:
remove_filter( 'the_title', 'capital_P_dangit', 11 ); remove_filter( 'the_content', 'capital_P_dangit', 11 ); remove_filter( 'comment_text', 'capital_P_dangit', 31 );
Since: 3.0.0
capital_P_dangit() is located in wp-includes/formatting.php
.