Enables developers to filter the output of WordPress widgets.
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 modify the complete HTML output of any widget.
This plugin is inspired by a similar filter in the Widget Logic plugin, and is useful in cases where a developer only needs to filter a widget's output, and does not require the widget visibility functionality of Widget Logic.
This plugin also provides a filter parameter containing the widget type, or base ID (i.e.
recent-posts), in addition to the more specific widget ID parameter (
recent-posts-5). This allows developers to more easily filter all widgets of a specific type, rather than (as is the case with Widget Logic) only having the widget's own unique ID to work with, which will vary between individual widgets, widget areas, and WordPress installs.