Title: Widget Output Filters
Author: Philip Newcomer
Published: <strong>2014 年 6 月 28 日</strong>
Last modified: 2016 年 9 月 12 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/widget-output-filters.svg)

# Widget Output Filters

 作者：[Philip Newcomer](https://profiles.wordpress.org/philipnewcomer/)

[下载](https://downloads.wordpress.org/plugin/widget-output-filters.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/widget-output-filters/#description)
 * [评价](https://cn.wordpress.org/plugins/widget-output-filters/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/widget-output-filters/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/widget-output-filters/#developers)

 [支持](https://wordpress.org/support/plugin/widget-output-filters/)

## 描述

Sometimes developers need to filter the output of a widget that does not have its
own output filter built-in. This plugin provides a filter which will allow developers
to filter any widget’s output, regardless of whether it has that capability natively
or not.

This plugin was inspired by a similar filter in the [Widget Logic](https://wordpress.org/plugins/widget-logic/)
plugin, and essentially duplicates that functionality, but with more flexibility.

Usage instructions are [on GitHub](https://github.com/philipnewcomer/widget-output-filters).

This plugin is developed [on GitHub](https://github.com/philipnewcomer/widget-output-filters),
and is available as a [Composer package](https://packagist.org/packages/philipnewcomer/wp-widget-output-filters).

## 安装

If you know what WordPress filters are, you probably know how to install a plugin.
Just install and activate; there are no settings to configure. See the [usage instructions on GitHub](https://github.com/philipnewcomer/widget-output-filters).

## 评价

![](https://secure.gravatar.com/avatar/fac02b4523bc289d905bd826af27caf1c36369fafdf0d48c7ce3172480e920f7?
s=60&d=retro&r=g)

### 󠀁[[exhales deeply] Thank you!](https://wordpress.org/support/topic/exhales-deeply-thank-you/)󠁿

 [cherryaustin](https://profiles.wordpress.org/cherryaustin/) 2017 年 2 月 13 日

If I'd found your library a week ago, I'd have got a lot more of my "life" stuff
done! I suppose I'd have learned somewhat less about the darker depths of Wordpress
core – but I still didn't succeed in modifying my widget output correctly. Added
Widget Output Filters, spent ten minutes reading up, and the job's done. So … thanks,
but please could you come round and sort out all the housework & laundry I've let
slide? 😉

![](https://secure.gravatar.com/avatar/2e649b26d079a3d17a9b0512a65acbcd35ac852c73ef5052a7fbcde30ee6906f?
s=60&d=retro&r=g)

### 󠀁[Very nice for developers!](https://wordpress.org/support/topic/very-nice-for-developers/)󠁿

 [flamenco](https://profiles.wordpress.org/flamenco/) 2016 年 9 月 3 日

This is a great plugin! I remember a bunch of projects ago that I was wanting to
be able to put some stuff into widget areas independent of stuff already entered
via the admin interface. And here it is. 🙂 Yes, you need to write some code, but
this is cleaner and nicer than setting up an output buffer, setting up a fancy shortcode
scenario from scratch, or other means. Philip – thanks very much! Dave

![](https://secure.gravatar.com/avatar/3855dad6a4c206a82f183f409f74b836440d8cb59187b5ddfbd6ad3c8151df44?
s=60&d=retro&r=g)

### 󠀁[Brilliant](https://wordpress.org/support/topic/brilliant-569/)󠁿

 [Bryan Willis](https://profiles.wordpress.org/codecandid/) 2016 年 9 月 3 日

Finally a solution to something that was once so complicated to do…

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/widget-output-filters/reviews/)

## 贡献者及开发者

「Widget Output Filters」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Philip Newcomer ](https://profiles.wordpress.org/philipnewcomer/)

[帮助将「Widget Output Filters」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/widget-output-filters)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/widget-output-filters/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/widget-output-filters/)，或通过[RSS](https://plugins.trac.wordpress.org/log/widget-output-filters/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/widget-output-filters/)。

## 更新日志

#### 1.2.0

 * Fix infinite loop when the same widget instance is rendered twice on the same
   page as some page builder plugins allow
 * Convert class to a singleton
 * Update docs

#### 1.1.0

 * Refactor code
 * Add Composer support
 * Add sidebar ID as a parameter in the filter

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.6.30**
 *  语言
 * [English (US)](https://wordpress.org/plugins/widget-output-filters/)
 * 标签
 * [filter](https://cn.wordpress.org/plugins/tags/filter/)[filters](https://cn.wordpress.org/plugins/tags/filters/)
   [output](https://cn.wordpress.org/plugins/tags/output/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
   [widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/widget-output-filters/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/widget-output-filters/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/widget-output-filters/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/widget-output-filters/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/widget-output-filters/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/widget-output-filters/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/widget-output-filters/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/widget-output-filters/reviews/)

## 贡献者

 *   [ Philip Newcomer ](https://profiles.wordpress.org/philipnewcomer/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/widget-output-filters/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://philipnewcomer.net/donate/)