WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/capital P dangit

Description

Changes the incorrect capitalization of Wordpress into WordPress.

WordPress uses it to filter the content, the title and comment text.

Usage

 <?php capital_P_dangit$text ); ?> 

Parameters

$text
(string) (required) The text to be formatted.
Default: None

Return

(string) (required) A string with instances of "Wordpress" changed to "WordPress".
Default: None

Notes

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 );

Changelog

Since: 3.0.0

Source File

capital_P_dangit() is located in wp-includes/formatting.php.

References

This article is marked as in need of editing. You can help Codex by editing it.