Widget Output Filters
Widget Output Filters
Description
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.
Installation
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.
Reviews
[exhales deeply] Thank you!
By cherryaustin on February 13, 2017
Very nice for developers!
By flamenco on September 3, 2016
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
Brilliant
By Bryan Willis (codecandid) on September 3, 2016
Finally a solution to something that was once so complicated to do...
Changelog
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