Is it possible to override the result of get_template_part()?

Posted by Prem Tiwari | Updated on

I think it’s not exactly possible the way you want to achieve. It’s really annoying to not getting a filter there to alter template files names.

I have a workaround on it though. Let use content.php for the comparison.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers