So after all of this, we still have yet to actually discuss the guidelines of when to use what. By no means am I an authority on this, but here are the rules of thumb that I follow: In theme development, I always use get_template_part(). In plugin development, I almost always use include_once() and I [...]
The post WordPress Include and Require (Files and Templates) – When Should I Use What? appeared first on Tutorial Mini.
Related posts:
- WordPress Include and Require (Files and Templates)
- WordPress Include and Require (Files and Templates) – Including Files With PHP
- WordPress Include and Require (Files and Templates) – Requiring Files With PHP
via Tutorial Mini http://tutorialmini.com/wordpress-include-and-require-files-and-templates-when-should-i-use-what/
No comments:
Post a Comment