[wp-trac] [WordPress Trac] #26636: There Is No Filter For get_sidebar()

WordPress Trac noreply at wordpress.org
Tue Jan 27 14:03:13 UTC 2015


#26636: There Is No Filter For get_sidebar()
-------------------------+------------------------------
 Reporter:  shelob9      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  1.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+------------------------------

Comment (by justnorris):

 *beep beep beep beep*

 Is this coming to wordpress some day ?

 I'd actually love to see this in a combination with get_header() being
 filtered too, that way the theme ( or a plugin ) could decide whether to
 output the header and sidebar. As @dbaker said - for PJAX/pushState

 My current workaround is to use a "maybe_get_sidebar($sidebar)" function
 throughout my theme, but this would be a lot more elegant :)

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


More information about the wp-trac mailing list