WordPress:Function Reference/apply filters

来自站长百科
Xxf3325讨论 | 贡献2008年7月19日 (六) 15:03的版本 (新页面: == Description == Call the functions added to a filter hook. See the WordPress:Plugin API for a list of filter hooks. The callback functions attached to filter hook <tt>$tag</tt> ar...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Description

Call the functions added to a filter hook. See the WordPress:Plugin API for a list of filter hooks.

The callback functions attached to filter hook $tag are invoked by calling this function. This function can be used to create a new filter hook by simply calling this function with the name of the new hook specified using the $tag parameter.

Usage

%%% <?php apply_filters($tag, $string); ?> %%%

Parameters

Return

(string) The text in $string after all hooked functions are applied to it.