WordPress: Function Reference/do action:修订间差异
来自站长百科
(新页面: == Description == Creates a hook for attaching actions via add_action. == Usage == %%% <?php do_action($tag, $arg = ''); ?> %%% == Paramete...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述== | |||
Creates a hook for attaching actions via [[WordPress:Function Reference/add_action|add_action]]. | Creates a hook for attaching actions via [[WordPress:Function Reference/add_action|add_action]]. | ||
为通过[[WordPress:Function Reference/add_action|add_action]]附加的actions,创建hook。 | |||
== Usage == | == Usage == | ||
== 用法 == | |||
%%% <?php do_action($tag, $arg = ''); ?> %%% | |||
%%% <?php do_action($tag, $arg = ''); ?> %%% | %%% <?php do_action($tag, $arg = ''); ?> %%% | ||
== Parameters == | == Parameters == | ||
== 参数 == | |||
; <tt>$tag</tt> : (''string'') The name of the hook you wish to create. | ; <tt>$tag</tt> : (''string'') The name of the hook you wish to create. | ||
; <tt>$arg</tt> : (''string'') The list of arguments this hook accepts. | ; <tt>$arg</tt> : (''string'') The list of arguments this hook accepts. | ||
; <tt>$tag</tt> : (''string'') 你想要创建的hook的名称。; <tt>$arg</tt> : (''string'') 这个hook接受的一列参数。 | |||
{{Stub}} | |||
{{Stub}} | {{Stub}} |
2008年7月21日 (一) 15:37的版本
Description
描述
Creates a hook for attaching actions via add_action.
为通过add_action附加的actions,创建hook。
Usage
用法
%%% <?php do_action($tag, $arg = ); ?> %%%
%%% <?php do_action($tag, $arg = ); ?> %%%
Parameters
参数
- $tag
- (string) The name of the hook you wish to create.
- $arg
- (string) The list of arguments this hook accepts.
- $tag
- (string) 你想要创建的hook的名称。; $arg : (string) 这个hook接受的一列参数。
This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.
This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.