W3cubDocs

/WordPress

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

Fires before a template file is loaded.

Parameters

$_template_filestring
The full path to the template file.
$load_oncebool
Whether to require_once or require.
$argsarray
Additional arguments passed to the template.

Source

do_action( 'wp_before_load_template', $_template_file, $load_once, $args );

Changelog

Version Description
6.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_before_load_template