Proper way to include template file in wordpress plugin development.
-
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
require_once("../../../wp-blog-header.php"); 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.
Regards. thanks in advance
The topic ‘Proper way to include template file in wordpress plugin development.’ is closed to new replies.