WordPress: Function Reference/do action:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
== Description ==
== 描述==
== 描述==
Creates a hook for attaching actions via [[WordPress:Function Reference/add_action|add_action]].


为通过[[WordPress:Function Reference/add_action|add_action]]附加的actions,创建hook。
为通过[[WordPress:Function Reference/add_action|add_action]]附加的actions,创建hook。
== Usage ==


== 用法 ==
== 用法 ==
第13行: 第7行:
%%% <?php do_action($tag, $arg = ''); ?> %%%
%%% <?php do_action($tag, $arg = ''); ?> %%%


%%% <?php do_action($tag, $arg = ''); ?> %%%
== Parameters ==


== 参数 ==
== 参数 ==


; <tt>$tag</tt> : (''string'') The name of the hook you wish to create.
; <tt>$tag</tt> : (''string'') 你想要创建的hook的名称。
; <tt>$arg</tt> : (''string'') The list of arguments this hook accepts.
; <tt>$arg</tt> : (''string'') 这个hook接受的一列参数。
 
; <tt>$tag</tt> : (''string'') 你想要创建的hook的名称。; <tt>$arg</tt> : (''string'') 这个hook接受的一列参数。


{{Stub}}
{{Stub}}
{{Stub}}

2008年7月26日 (六) 16:27的最新版本

描述[ ]

为通过add_action附加的actions,创建hook。

用法[ ]

%%% <?php do_action($tag, $arg = ); ?> %%%


参数[ ]

$tag
(string) 你想要创建的hook的名称。
$arg
(string) 这个hook接受的一列参数。

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.