首页 > 其它 > 常用函数-apply_filters()

常用函数-apply_filters()

2009年05月01号
查看评论 发表评论 1,119次浏览

常用函数-apply_filters()

说明

调用添加到过滤器hook上的函数。在Plugin API上查看过滤器hook列表。

通过调用该函数,可以调用附着在过滤器hook $tag上的回调函数。用$tag参数所指定的新hook的名称调用该函数,可创建一个新的过滤器hook。

用法

<?php apply_filters($tag, $value); ?> 

参数

$tag

(字符串)(必需)过滤器hook的名称

默认值:None

$value

(混合)(必需)连接到$tag上的过滤器可能修改的值

默认值:None

返回的值

(混合)所有连接函数都应用到该函数后,返回$value的结果。

注意:返回值的类型应与$value类型一致,如字符串或数组。

类别其它 标签
  1. cheap minnesota twins jerseys
    发表于 2010年06月14号 20时35分46秒 | 1楼

    good luck on the launch guys

  2. Tom Brady Jersey
    发表于 2010年06月16号 05时36分33秒 | 2楼

    YOU MAKE ME LIVE MY DREAM

  3. cheap air force one mid shoes
    发表于 2010年06月20号 02时21分25秒 | 3楼

    I loved the article but was astonished at the breadth and depth of knowledge of those commenting about it.

  4. cheap lacoste shoes
    发表于 2010年07月23号 10时56分13秒 | 4楼

    I agree with the suggestions in the article.

  5. guides in St.Petersburg
    发表于 2010年12月07号 10时56分34秒 | 5楼

    谢谢你,干得好!这是东西,我得有。

  6. business promotion
    发表于 2010年12月17号 17时54分05秒 | 6楼

    交配。此博客是惊人的。我怎样才能使它看起来这个好吃吗?

  7. free movies online
    发表于 2010年12月19号 02时09分37秒 | 7楼

    简单而甜蜜。我想开始另一个博客或五不一会儿,我肯定会考虑这一主题。陪他们来了!

你必需 登陆 才能发表评论.