um_locate_template

Hook type

Filter

Description

Change template locate

Parameters

$template

(string) Template locate

$template_name

(string) Template Name

$path

(string) Template Path at server

Usage

add_filter( 'um_locate_template', 'function_name', 10, 3 );

Examples

<?php
add_filter( 'um_locate_template', 'my_locate_template', 10, 3 );
function my_locate_template( $template, $template_name, $path ) {
    // your code here
return $template;
}
?>

Change Log

Since: 2.0

Source

um_locate_template is located in includes/class-functions.php::line 331