[wp-trac] [WordPress Trac] #40842: Adding template filters

WordPress Trac noreply at wordpress.org
Mon May 22 23:37:09 UTC 2017

#40842: Adding template filters
 Reporter:  Ninos Ego    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  template     |
 Hey there,
 for a plugin I really need filters for modifiing the header, footer and
 also maybe the sidebar. ATM I cannot change the template files without
 changing the theme itself because of missing filters.

 If you need a description why I need to replace the header and footer,
 it's just simple: I want to add a functionality that on some pages the
 header/footer is replaced by a minimal header/footer (e.g. for customers
 from affiliate networks, shop pages). For a plugin it's not possible
 without these filters. Customers are forced to modify their theme itself,
 which is very hard to do for non-devs.

 I hope you can implement them as soon as possible (in next WP 4.8).

 PS: This is not a security risk, because a plugin also can manipulate the
 theme itself or use filters to change the general templates (single

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

More information about the wp-trac mailing list