template_redirect

template_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.6.2

do_action('template_redirect') is found 1 times:

  • /wp-includes/template-loader.php line 13
    	 * Fires before determining which template to load.
    	 *
    	 * @since 1.5.0
    	 */
    	do_action( 'template_redirect' );
    }
    
    /**
     * Filters whether to allow 'HEAD' requests to generate content.
     *
     * Provides a significant performance bump by exiting before the page
    

See this hook used in plugins:

Examples using template_redirect