On this page
do_action( 'wp_before_load_template', string $_template_file, bool $require_once, array $args )
Fires before a template file is loaded.
Parameters
$_template_filestring-
The full path to the template file.
$require_oncebool-
Whether to require_once or require.
$argsarray-
Additional arguments passed to the template.
Source
File: wp-includes/template.php. View all references
do_action( 'wp_before_load_template', $_template_file, $require_once, $args );
Related
Used By
| Used By | Description |
|---|---|
| load_template() wp-includes/template.php | Requires the template file with WordPress environment. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_before_load_template