[wp-trac] [WordPress Trac] #41575: Add global action to get_template_part

WordPress Trac noreply at wordpress.org
Sun Aug 6 21:56:46 UTC 2017


#41575: Add global action to get_template_part
-------------------------+-----------------------------
 Reporter:  pcfreak30    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 I would like to see
 {{{#!php
 do_action( "get_template_part", $slug, $name );
 }}}

 in get_template_part. Right now there is no means to track or do any
 action on every template call. A feature I want to implement in a plugin
 relies on this to function how I want. As of now I can only get the
 primary template.

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


More information about the wp-trac mailing list