[wp-trac] [WordPress Trac] #41239: Add filter in dynamic_sidebar() to allow changing the index before rendering

WordPress Trac noreply at wordpress.org
Tue Jul 4 22:36:45 UTC 2017


#41239: Add filter in dynamic_sidebar() to allow changing the index before
rendering
-------------------------------+------------------------------
 Reporter:  jantank            |       Owner:
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Widgets            |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => reporter-feedback


Comment:

 @jantank there is the `sidebars_widgets` filter which can be used, right?
 If not, then if you want to change the argument passed into
 `dynamic_sidebar()` then I suggest your theme add a custom filter there
 which you can then leverage to modify the `$index` that is passed in from
 the template.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41239#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list