WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#23951 closed enhancement (wontfix)

Add filter to all sidebar widget content

Reported by: Jesper800 Owned by:
Milestone: 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 (3)

#1 @pbaylies
7 years ago

  • Cc pbaylies added

#2 @ocean90
7 years 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?

#3 @DrewAPicture
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No activity in 7 months, and the widget_display_callback filter should suffice here.

Note: See TracTickets for help on using tickets.