Created
July 2, 2012 23:06
-
-
Save eddiemoya/3036273 to your computer and use it in GitHub Desktop.
Return Template Part - WordPress
This file contains 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 return_template_part($template, $specialized_name = ''){ | |
ob_start(); | |
get_template_part($template, $specialized_name); | |
return ob_get_clean(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment