WordPress: Function Reference/do action ref array:修订间差异
来自站长百科
(新页面: == Description == Execute functions hooked on a specific action hook, specifying arguments in a array. This function is identical to do_action...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述== | |||
Execute functions hooked on a specific action hook, specifying arguments in a array. | Execute functions hooked on a specific action hook, specifying arguments in a array. | ||
执行hooked on特定的action hook上的函数,将参数指定到一个数组中。 | |||
This function is identical to [[WordPress:Function Reference/do_action|do_action]], but the arguments passed to | This function is identical to [[WordPress:Function Reference/do_action|do_action]], but the arguments passed to | ||
the functions hooked to <tt>$tag</tt> are supplied using an array. | the functions hooked to <tt>$tag</tt> are supplied using an array. | ||
这个函数与[[WordPress:Function Reference/do_action|do_action]]相同,但是传递到hooked to <tt>$tag</tt>的函数的参数,通过数组,提供。 | |||
== Parameters == | |||
== | == 参数 == | ||
; <tt>$tag</tt> : (''string'') The name of the action to be executed. | ; <tt>$tag</tt> : (''string'') The name of the action to be executed. | ||
; <tt>$args</tt> : (''array'') The arguments supplied to the functions hooked to <tt>$tag</tt> | ; <tt>$args</tt> : (''array'') The arguments supplied to the functions hooked to <tt>$tag</tt> | ||
; <tt>$tag</tt> : (''string'') 执行的action的名称。 | |||
; <tt>$args</tt> : (''array'') The arguments supplied to the functions hooked to <tt>$tag</tt> | |||
{{Stub}} | |||
{{Stub}} | {{Stub}} |
2008年7月21日 (一) 15:49的版本
Description
描述
Execute functions hooked on a specific action hook, specifying arguments in a array.
执行hooked on特定的action hook上的函数,将参数指定到一个数组中。 This function is identical to do_action, but the arguments passed to the functions hooked to $tag are supplied using an array. 这个函数与do_action相同,但是传递到hooked to $tag的函数的参数,通过数组,提供。
Parameters
参数
- $tag
- (string) The name of the action to be executed.
- $args
- (array) The arguments supplied to the functions hooked to $tag
- $tag
- (string) 执行的action的名称。
- $args
- (array) The arguments supplied to the functions hooked to $tag
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.