WPDev.one
Core Function
View Source on Trac ↗

load_template()

load_template( mixed $_template_file, mixed $load_once = true, mixed $args = array() )

Requires the template file with WordPress environment.

Parameters 2 required

Name / Type Description
$_template_file
string

Path to template file.

Required
$load_once
bool

Whether to require_once or require. Default true.

array

$args Optional. Additional arguments passed to the template. Default empty array.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
1.5.0
Source File
wp-includes/template.php
Advertisement