{"id":1048,"date":"2013-08-19T08:46:34","date_gmt":"2013-08-19T18:46:34","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=1048"},"modified":"2013-08-19T08:46:34","modified_gmt":"2013-08-19T18:46:34","slug":"template_include-vs-template_redirect","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/template_include-vs-template_redirect\/","title":{"rendered":"template_include vs template_redirect"},"content":{"rendered":"
WordPress has a filter called ‘template_include’ and it also has an action called ‘template_redirect’. \u00a0The filter allows you to change what template file to use by returning a file path while the action is usually used to write whatever you need to and then exit.<\/p>\n