WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
07/27/11 13:06:04 (3 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18265, comment 22

    initial v1  
    1 Thinking more about the ideal load_template() function, even did accept a $data arg, it would still be akward to use, since it's called from WP Core, not your own code. 
     1Thinking more about the ideal load_template() function, even if did accept a $data arg, it would still be akward to use, since it's called from WP Core, not your own code. 
    22 
    33But 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.