• 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

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

「プラグイン API/アクションフック一覧/wp head」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(en:Plugin API/Action Reference/wp_head 17:33, 17 September 2010 bono 版を翻訳用にコピー、リンク調整)
 
(見出しのみ)
1行目: 1行目:
 
{{NeedTrans}}
 
{{NeedTrans}}
  
==Description==
+
==説明==
  
 
The '''<tt>wp_head</tt> action hook''' is triggered within the <tt><head></head></tt> section of [[Theme Development#Template Files|the user's template]] by the [[関数リファレンス/wp_footer|<tt>wp_head()</tt> function]]. Although this is theme-dependent, it is one of the most essential theme hooks, so it is fairly widely supported.
 
The '''<tt>wp_head</tt> action hook''' is triggered within the <tt><head></head></tt> section of [[Theme Development#Template Files|the user's template]] by the [[関数リファレンス/wp_footer|<tt>wp_head()</tt> function]]. Although this is theme-dependent, it is one of the most essential theme hooks, so it is fairly widely supported.
19行目: 19行目:
 
See [[Plugin API#Actions|Plugin API - Actions]] for more detail.  
 
See [[Plugin API#Actions|Plugin API - Actions]] for more detail.  
  
== Default Actions ==
+
== デフォルトのアクション ==
  
 
Most of default actions into the <tt>'wp-head'</tt> hook by WordPress core are setted up in {{Source|wp-includes/default-filters.php}}. If you need to [[Plugin API#Removing Actions and Filters|remove]] a default hook, this file will give you the priority for which to use to remove the hook.
 
Most of default actions into the <tt>'wp-head'</tt> hook by WordPress core are setted up in {{Source|wp-includes/default-filters.php}}. If you need to [[Plugin API#Removing Actions and Filters|remove]] a default hook, this file will give you the priority for which to use to remove the hook.
  
== Source File ==
+
== ソースファイル ==
  
 
<tt>wp_head</tt> action hook is located in {{Trac|wp-includes/general-template.php}}
 
<tt>wp_head</tt> action hook is located in {{Trac|wp-includes/general-template.php}}
  
== See also ==
+
== 関連資料 ==
  
 
* [[Plugin API]]
 
* [[Plugin API]]

2015年5月7日 (木) 12:57時点における版

このページ「プラグイン API/アクションフック一覧/wp head」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

説明

The wp_head action hook is triggered within the <head></head> section of the user's template by the wp_head() function. Although this is theme-dependent, it is one of the most essential theme hooks, so it is fairly widely supported.

This hook provides no parameters. You use this hook by having your function echo output to the browser, or by having it perform background tasks. Your functions shouldn't return, and shouldn't take any parameters.

This hook is theme-dependent which means that it is up to the author of each WordPress theme to include it. It may not be available on all themes, so you should take this into account when using it.

This hook is an action which means that it primarily acts as an event trigger, instead of a content filter. This is a semantic difference, but it will help you to remember what this hook does if you use it like this:

<?php
add_action('wp_head', 'your_function');
?>

See Plugin API - Actions for more detail.

デフォルトのアクション

Most of default actions into the 'wp-head' hook by WordPress core are setted up in wp-includes/default-filters.php. If you need to remove a default hook, this file will give you the priority for which to use to remove the hook.

ソースファイル

wp_head action hook is located in wp-includes/general-template.php

関連資料

このページ「プラグイン API/アクションフック一覧/wp head」はまだ書きかけで、情報が不足しています。続きを書いて WordPress を手助けしましょう.


最新英語版: WordPress Codex » Plugin API/Action Reference/wp_head最新版との差分