wp_before_load_template

wp_before_load_template

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('wp_before_load_template') is found 1 times:

  • /wp-includes/template.php line 807
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    * @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.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
     
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }