wp_before_load_template

wp_before_load_template

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_before_load_template') is found 1 times:

  • /wp-includes/template.php line 807
    	 * @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;
    	}