Attempts to load templates in order of priority
| Since | |
|---|---|
3.0 |
|
3.4.38 |
New: Additional parameter default_template to pass the default template which will be used if the template is not found. |
3.4.41 |
Fix: Only the default template was loading. |
3.5.3 |
Hook to filter find array as well as final template. |
3.5.11 |
Pass the original template in the filter. |
3.6 |
Security: refuses template names with ".." or a drive letter, so a shortcode attribute (wrap_template, template) can't include files outside the template folders. |
| Parameters | |||
|---|---|---|---|
string
|
$template |
Template name. |
# |
array
|
$arguments = [] |
Options to pass to template. |
# |
bool
|
$default_template = false |
Pass a default template. |
# |