常用函数-apply_filters()
常用函数-apply_filters()
说明
调用添加到过滤器hook上的函数。在Plugin API上查看过滤器hook列表。
通过调用该函数,可以调用附着在过滤器hook $tag上的回调函数。用$tag参数所指定的新hook的名称调用该函数,可创建一个新的过滤器hook。
用法
<?php apply_filters($tag, $value); ?>
参数
$tag
(字符串)(必需)过滤器hook的名称
默认值:None
$value
(混合)(必需)连接到$tag上的过滤器可能修改的值
默认值:None
返回的值
(混合)所有连接函数都应用到该函数后,返回$value的结果。
注意:返回值的类型应与$value类型一致,如字符串或数组。
good luck on the launch guys
YOU MAKE ME LIVE MY DREAM
I loved the article but was astonished at the breadth and depth of knowledge of those commenting about it.
I agree with the suggestions in the article.
谢谢你,干得好!这是东西,我得有。
交配。此博客是惊人的。我怎样才能使它看起来这个好吃吗?
简单而甜蜜。我想开始另一个博客或五不一会儿,我肯定会考虑这一主题。陪他们来了!