WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18265, comment 20


Ignore:
Timestamp:
07/27/11 13:01:53 (4 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18265, comment 20

    initial v1  
    22 
    33That 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.