這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 plugin, and essentially duplicates that functionality, but with more flexibility.

Usage instructions are on GitHub.

This plugin is developed on GitHub, and is available as a Composer package.

安裝方式

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.

使用者評論

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? 😉
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
2016 年 9 月 3 日
Finally a solution to something that was once so complicated to do…
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Widget Output Filters〉的開發相關工作。

參與者

將〈Widget Output Filters〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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