WordPress: Function Reference/merge filters:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
== Description ==
== 描述==
== 描述==
Merge the filter functions of a specific filter hook with generic filter functions.


用普通的filter 函数合并某个filter hook的filter 函数。
用普通的filter 函数合并某个filter hook的filter 函数。
It is possible to defined generic filter functions using the filter hook ''all''. These functions are called for every filter tag. This function merges the functions attached to the ''all'' hook with the functions of a specific hoook defined by <tt>$tag</tt>.


使用filter hook''所有的''定义generic filter函数是可能的。为每个filter 标签调用这些函数。这个函数合并了附加的''all'' hook上的函数,一个特别的hook的函数由<tt>$tag</tt>定义。
使用filter hook''所有的''定义generic filter函数是可能的。为每个filter 标签调用这些函数。这个函数合并了附加的''all'' hook上的函数,一个特别的hook的函数由<tt>$tag</tt>定义。


== Parameters ==
== 参数 ==
== 参数 ==
{{Parameter|$tag|string|The filter hook of which the functions should be merged.}}


{{Parameter|$tag|string|函数应该合并的filter hook。}}
{{Parameter|$tag|string|函数应该合并的filter hook。}}


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

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

描述[ ]

用普通的filter 函数合并某个filter hook的filter 函数。

使用filter hook所有的定义generic filter函数是可能的。为每个filter 标签调用这些函数。这个函数合并了附加的all hook上的函数,一个特别的hook的函数由$tag定义。

参数[ ]

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