WordPress at a glance
action is not described

template_redirect action-hook . WP 1.5.0

Fires before determining which template to load.

Usage

add_action( 'template_redirect', 'action_function_name_2918' );
function action_function_name_2918(){
	// action...
}

Where the hook is called

In file: /wp-includes/template-loader.php
template_redirect
wp-includes/template-loader.php 12
do_action( 'template_redirect' );

Where the hook is used (in WP core)

wp-includes/customize/class-wp-customize-selective-refresh.php 162
add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
wp-includes/ms-default-filters.php 49
add_action( 'template_redirect', 'maybe_redirect_404' );
wp-includes/default-filters.php 259
add_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
wp-includes/default-filters.php 288
add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 );
wp-includes/default-filters.php 375
add_action( 'template_redirect', 'wp_old_slug_redirect' );
wp-includes/default-filters.php 500
add_action( 'template_redirect', 'redirect_canonical' );
wp-includes/default-filters.php 501
add_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
wp-includes/default-filters.php 518
add_action( 'template_redirect', '_wp_admin_bar_init', 0 );