Changes between Initial Version and Version 1 of Ticket #18265, comment 20
- Timestamp:
- 07/27/2011 01:01:53 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18265, comment 20
initial v1 2 2 3 3 That wouldn't work, since you would be in the callback's scope, not in load_template()'s. 4 5 Even if load_template() did accept a $data arg, it would still be akward to use, since it's called by WP Core.6 7 But with the 'template_include' filter you can do pretty much whatever you want: check {{{basename( $template )}}}, use conditional tags like is_single(), use your own version of load_template() etc.