wp_after_load_template action-hookWP 6.1.0

Fires after a template file is loaded.

Usage

add_action( 'wp_after_load_template', 'wp_kama_after_load_template_action', 10, 3 );

/**
 * Function for `wp_after_load_template` action-hook.
 * 
 * @param string $_template_file The full path to the template file.
 * @param bool   $load_once      Whether to require_once or require.
 * @param array  $args           Additional arguments passed to the template.
 *
 * @return void
 */
function wp_kama_after_load_template_action( $_template_file, $load_once, $args ){

	// action...
}
$_template_file(string)
The full path to the template file.
$load_once(true|false)
Whether to require_once or require.
$args(array)
Additional arguments passed to the template.

Changelog

Since 6.1.0 Introduced.

Where the hook is called

load_template()
wp_after_load_template
wp-includes/template.php 824
do_action( 'wp_after_load_template', $_template_file, $load_once, $args );

Where the hook is used in WordPress

Usage not found.