um_before_template_part

Hook type

Action

Description

Make some action before include template file

Parameters

$template_name

(string) Template Name

$path

(string) Template Path at server

$located

(string) template Located

$t_args

(array) Template Arguments

Usage

add_action( 'um_before_template_part', 'function_name', 10, 4 );

Examples

<?php
add_action( 'um_before_template_part', 'my_before_template_part', 10, 4 );
function my_before_template_part( $template_name, $path, $located, $t_args ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_before_template_part is located in includes/class-functions.php::line 248