Title: wp-includes/template-loader.php | Developer.WordPress.org

---

# File: wp-includes/template-loader.php

 * hook[wp_before_include_template](https://developer.wordpress.org/reference/hooks/wp_before_include_template/)
 * Fires immediately before including the template.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/wp_before_include_template/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_before_include_template/#uses)
   | Source: [wp-includes/template-loader.php:123](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L123-L123)
 * hook[do_favicon](https://developer.wordpress.org/reference/hooks/do_favicon/)
 * Fired when the template loader determines a favicon.ico request.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/do_favicon/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/do_favicon/#uses)
   | Source: [wp-includes/template-loader.php:55](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L55-L55)
 * hook[embed_template](https://developer.wordpress.org/reference/hooks/embed_template/)
 * Filter the template used for embedded posts.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/embed_template/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/embed_template/#uses)
   | Source: [wp-includes/template-loader.php:52](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L52-L52)
 * hook[template_include](https://developer.wordpress.org/reference/hooks/template_include/)
 * Filters the path of the current template before including it.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/template_include/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/template_include/#uses)
   | Source: [wp-includes/template-loader.php:114](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L114-L114)
 * hook[template_redirect](https://developer.wordpress.org/reference/hooks/template_redirect/)
 * Fires before determining which template to load.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/template_redirect/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/template_redirect/#uses)
   | Source: [wp-includes/template-loader.php:23](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L23-L23)
 * hook[exit_on_http_head](https://developer.wordpress.org/reference/hooks/exit_on_http_head/)
 * Filters whether to allow ‘HEAD’ requests to generate content.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/exit_on_http_head/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/exit_on_http_head/#uses)
   | Source: [wp-includes/template-loader.php:36](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L36-L36)
 * hook[do_robots](https://developer.wordpress.org/reference/hooks/do_robots/)
 * Fired when the template loader determines a robots.txt request.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/do_robots/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/do_robots/#uses)
   | Source: [wp-includes/template-loader.php:47](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/template-loader.php#L47-L47)