sfw_maybe_get_better_template

Description

Checks if a integrated template has a higher priority than a choosen template

Since: 1.0.0

Code

<?php function sfw_maybe_get_better_template( $sfw_template, $template, $templates ){ 
	 … 
 } ?>

Parameter

$sfw_template
(string) A file inside of this plugins template folder, the name must match one of $templates
$template
(string) An absolute path to a template file, returned by locate_template
$templates
(array) A list of possilbe template files

Return

(string) An absolute path to a template file

File

core/components/templates/functions-templates.php