• サイトデザイン工事中です。ご意見をお寄せください
  • 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

関数リファレンス/wp head

提供:WordPress Codex 日本語版
移動: 案内, 検索

目次

説明

'wp_head' アクションをスタートさせる。テーマテンプレートファイル内の </body> タグ直前で使う(例: header.phpindex.php の中)。

使い方

<?php wp_head(); ?>

パラメータ

この関数は変数を受け付けない。

使用例

WordPress Twenty Eleven テーマ 内での例

wp-content/themes/twentyten/header.php:

<?php 
...
   /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
   wp_head();
?>
</head>


注意点

変更履歴

ソースファイル

wp_head()wp-includes/general-template.php に含まれる。

関連情報


最新英語版: WordPress Codex » Function Reference/wp head最新版との差分

個人用ツール
名前空間
変種
操作
このサイトについて
特集
サーバ別情報
リファレンス
ドキュメント整備
ツールボックス
他の言語