- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/capital P dangit
提供: WordPress Codex 日本語版
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 ); ?> %%%
パラメーター
- text
- (string) The text to be formatted.
削除
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 );
ソースファイル
capital_P_dangit() は wp-includes/formatting.php
の 3327 行目にあります。
リファレンス
- Lowercase p, dangit! Great post by Justin Tadlock on the problems with this filter.
- Capitalp.org
最新英語版: WordPress Codex » Function Reference/capital P dangit (最新版との差分)
この記事は翻訳時に編集が必要であるとマークされていました。その為Codex原文が大きく編集されている可能性があります。内容を確認される際は原文を参照していただき、可能であれば本項目へ反映させてください。よりよいCodexを作成するためのお手伝いをお願いします。