um_get_template

Hook type

Filter

Description

Change template location

Parameters

$located

(string) template Located

$template_name

(string) Template Name

$path

(string) Template Path at server

$t_args

(array) Template Arguments

Usage

add_filter( 'um_get_template', 'function_name', 10, 4 );

Examples

<?php
add_filter( 'um_get_template', 'my_get_template', 10, 4 );
function my_get_template( $located, $template_name, $path, $t_args ) {
    // your code here
return $located;
}
?>

Change Log

Since: 2.0

Source

um_get_template is located in includes/class-functions.php::line 222