- サイトデザイン工事中です。ご意見をお寄せください。
- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/wp footer
提供:WordPress Codex 日本語版
< テンプレートタグ(関数リファレンス/wp footerから転送)
目次 |
説明
'wp_footer' アクションフックをスタートさせる。テーマテンプレートファイル内の </body> タグ直前で使う(例: footer.php や index.php の中)。
使い方
<?php wp_footer(); ?>
変数
この関数は変数を受け付けない。
使用例
WordPress Twenty Eleven テーマ 内での例
wp-content/themes/twentyten/footer.php:
...
<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>
</body>
</html>
注意点
- do_action() の 'wp_footer' フックを使う。
変更履歴
- 1.5.1 で新規追加。
ソースファイル
wp_footer() は wp-includes/general-template.php に含まれる。
関連情報
- Theme Review(必須)
最新英語版: WordPress Codex » Function Reference/wp_footer (最新版との差分)