currently am working on a wordpress plugin called Product Designer and for design the product images i want to use a template file which contains all of functionality and working fine. So when i send my plugin for approval in wordpress they create issue and send me back the issue was they say cannot include the core file directory i use below two lines in my design template file so i pass id of product and call this template file.


header("HTTP/1.1 200 OK"); 

The question is how i can include a plugin template in my wordpress plugin without using the top two lines and my plugin work fine.

thanks in advance

Read more here: Including templates file in wordpress plugins with proper way not by using direct core files


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: