do_robotstxt
Fires when displaying the robots.txt file.
Usage
add_action( 'do_robotstxt', 'wp_kama_do_robotstxt_action' ); /** * Function for `do_robotstxt` action-hook. * * @return void */ function wp_kama_do_robotstxt_action(){ // action... }
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
do_robotstxt
wp-includes/functions.php 1707
do_action( 'do_robotstxt' );