[wp-trac] [WordPress Trac] #34942: Add a filter for $index in dynamic_sidebar() function

WordPress Trac noreply at wordpress.org
Wed Dec 9 18:48:45 UTC 2015


#34942: Add a filter for $index in dynamic_sidebar() function
-------------------------+-----------------------------
 Reporter:  ShinichiN    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 It would be nice if plugins can filter the index (the name of the widget
 area) in dynamic_sidebar() function.

 While there are a lot of hooks inside this function, it is not possible to
 switch an area to another.

 A lot of plugins try to offer WordPress users the ability to create and
 switch areas dynamically, but all of them (,which I found) has to offer a
 custom template tag to render the desired widget area. Users need to edit
 their files like sidebar.php.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34942>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list