WordPress: Function Reference/do action:修订间差异
来自站长百科
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
== 描述== | == 描述== | ||
为通过[[WordPress:Function Reference/add_action|add_action]]附加的actions,创建hook。 | 为通过[[WordPress:Function Reference/add_action|add_action]]附加的actions,创建hook。 | ||
== 用法 == | == 用法 == | ||
第13行: | 第7行: | ||
%%% <?php do_action($tag, $arg = ''); ?> %%% | %%% <?php do_action($tag, $arg = ''); ?> %%% | ||
== 参数 == | == 参数 == | ||
; <tt>$tag</tt> : (''string'') | ; <tt>$tag</tt> : (''string'') 你想要创建的hook的名称。 | ||
; <tt>$arg</tt> : (''string'') 这个hook接受的一列参数。 | |||
{{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.