wp_before_include_template

wp_before_include_template

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.9

do_action('wp_before_include_template') is found 1 times:

  • /wp-includes/template-loader.php line 123
    		 * @since 6.9.0
    		 *
    		 * @param string $template The path of the template about to be included.
    		 */
    		do_action( 'wp_before_include_template', $template );
    
    		include $template;
    	} elseif ( current_user_can( 'switch_themes' ) ) {
    		$theme = wp_get_theme();
    		if ( $theme->errors() ) {
    			wp_die( $theme->errors() );