WordPress でヘッダ内のバージョンを消す方法

このエントリーをはてなブックマークに追加
はてなブックマーク - WordPress でヘッダ内のバージョンを消す方法
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip

WordPress のテンプレートタグ wp_head() を使うと、利用している WordPress のバージョン番号が meta タグとして追加される。
そこで、functions.php に以下のコードを記述するとバージョン番号の表示が行われなくなります。

remove_action('wp_head', 'wp_generator');
Related Posts

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt=""> <pre lang="" line="" escaped="" highlight="">