Created
July 18, 2017 21:42
-
-
Save rob-gordon/5b1be75c60d47a63985811e4f6281115 to your computer and use it in GitHub Desktop.
scoped replacement for get_template_part
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function get_partial($t) { | |
| include( locate_template( 'template_parts/'.$t.'.php', false, false ) ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment