do_robotstxt WordPress Action Hook

The do_robotstxt hook allows you to add custom content to your site's robots.txt file. This can be useful if you want to add directives for specific robots, or exclude certain parts of your site from being crawled.

do_action( 'do_robotstxt' ) #

Fires when displaying the robots.txt file.


Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More