do_robots action-hookWP 2.1.0

Fired when the template loader determines a robots.txt request.

Usage

add_action( 'do_robots', 'wp_kama_do_robots_action' );

/**
 * Function for `do_robots` action-hook.
 * 
 * @return void
 */
function wp_kama_do_robots_action(){

	// action...
}

Changelog

Since 2.1.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

wp-includes/default-filters.php 405
add_action( 'do_robots', 'do_robots' );