WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 8 weeks ago

#23951 new enhancement

Add filter to all sidebar widget content

Reported by: Jesper800 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords: reporter-feedback
Focuses: Cc:

Description

I'm looking for opinions of other people here before proposing an approach for this.

What I'm missing, as far as widgets are concerned, is a filter for changing widget content. I would suggest something along the lines of a filter for the content in WP_Widget's display_callback method.

Using this, small changes could be made to widgets while still maintaining upgradability when the plugin, core or theme updates the widget — something that is not the case when extending the widget and overriding the widget method.

Change History (2)

comment:1 pbaylies11 months ago

  • Cc pbaylies added

comment:2 ocean908 weeks ago

  • Keywords reporter-feedback added; 2nd-opinion removed

Hello Jesper800, thanks for the report.

Using this, small changes could be made to widgets

Could you explain this a bit more? Which changes would you like to do?
Can't you use the widget_display_callback filter?

Note: See TracTickets for help on using tickets.