do_robots WordPress Action Hook
The do_robots hook is one of the most important hooks in WordPress. It is used to output the contents of the robots.txt file, which tells search engines what pages on your site they should index and what pages they should ignore. If you're running a WordPress site, it's essential that you understand how the do_robots hook works and how to use it to your advantage. In this article, we'll give you a brief overview of the do_robots hook and how you can use it to control what search engines index on your site.
do_action( 'do_robots' ) #
Fired when the template loader determines a robots.txt request.