wpseek.com
A WordPress-centric search engine for devs and theme authors



load_template › WordPress Function

Since1.5.0
Deprecatedn/a
load_template ( $_template_file, $load_once = true, $args = array() )
Parameters: (3)
  • (string) $_template_file Path to template file.
    Required: Yes
  • (bool) $load_once Whether to require_once or require. Default true.
    Required: No
    Default: true
  • (array) $args Optional. Additional arguments passed to the template. Default empty array.
    Required: No
    Default: array()
Defined at:
Codex:
Change Log:
  • 5.5.0

Requires the template file with WordPress environment.

The globals are set up for the template file to ensure that the WordPress environment is available from within the function. The query variables are also available.


Source

Soon...