wphooks.info - do_robots

do_robots

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/template-loader.php:
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
	exit();

// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) :
	/**
	 * Fired when the template loader determines a robots.txt request.
	 *
	 * @since 2.1.0
	 */
	do_action( 'do_robots' );
	return;
elseif ( is_feed() ) :
	do_feed();
	return;
elseif ( is_trackback() ) :
	include( ABSPATH . 'wp-trackback.php' );
	return;
endif;