do_action( 'wp_before_load_template', string $_template_file, bool $load_once, array $args )

Fires before a template file is loaded.


Parameters

$_template_file

The full path to the template file.

$load_once

Whether to require_once or require.

$args

Additional arguments passed to the template.


Source

File: wp-includes/template.php

View on GitHub



Changelog

Changelog
Version Description
6.1.0 Introduced.