Function epl_get_template_part
Attempts to load templates in order of priority
Package: EPL\Functions\Templates
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Since: 3.0
Since: 3.4.38 New: Additional parameter default_template to pass the default template which will be used if the template is not found.
Since: 3.4.41 Fix: Only the default template was loading.
Since: 3.5.3 Hook to filter find array as well as final template.
Since: 3.5.11 Pass the original template in the filter.
Located at lib/includes/template-functions.php
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Since: 3.0
Since: 3.4.38 New: Additional parameter default_template to pass the default template which will be used if the template is not found.
Since: 3.4.41 Fix: Only the default template was loading.
Since: 3.5.3 Hook to filter find array as well as final template.
Since: 3.5.11 Pass the original template in the filter.
Located at lib/includes/template-functions.php
Parameters summary
string |
$template |
Template name. |
array |
$arguments = array() |
Options to pass to template. |
boolean |
$default_template = false |
Pass a default template. |