WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/do robots

Description

Display the robots.txt file content.

The echoed content should be with usage of the permalinks or for creating the robots.txt file.

Usage

<?php do_robots() ?>

Parameters

Accepts no parameters.

Return Value

This function does not return any value.

Examples

Notes

  • Uses do_action() Calls 'do_robotstxt' hook for displaying robots.txt rules.

Change Log

Since: 2.1.0

Source File

do_robots() is located in wp-includes/functions.php.

Related

 

See also index of Function Reference and index of Template Tags.