[wp-trac] [WordPress Trac] #40258: Add hook for get_template_part
WordPress Trac
noreply at wordpress.org
Sat Mar 25 10:05:55 UTC 2017
#40258: Add hook for get_template_part
-------------------------+------------------------------
Reporter: tazotodua | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by tazotodua):
Another problem arises when in theme there is:
`get_template_part( 'components/footer/site'); `
as we cant add action like this:
add_action('get_template_part_{$slug}'
which should be:
`add_action('get_template_part_components/footer/site'`
however, that action contains slash and cant be added.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40258#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list