当サイト、Codex 日本語版は今後積極的な更新は行わない予定です。後継となる新ユーザーマニュアルは、https://ja.wordpress.org/support/ にあります。
万が一、当サイトで重大な問題を発見した際などは、フォーラムや WordSlack #docs チャンネルでお知らせください。</p>
万が一、当サイトで重大な問題を発見した際などは、フォーラムや WordSlack #docs チャンネルでお知らせください。</p>
テンプレートタグ/wp footer
提供: WordPress Codex 日本語版
< テンプレートタグ(関数リファレンス/wp footerから転送)
説明
'wp_footer' アクションフックをスタートさせる。テーマテンプレートファイル内の </body> タグ直前で使う(例: footer.php や index.php の中)。
使い方
<?php wp_footer(); ?>
変数
この関数は変数を受け付けない。
使用例
WordPress Twenty Seventeen テーマ 内での例
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 (最新版との差分)