Robots
Robots Functions
Conditional Functionsis_robots()Determines whether the query is for the robots.txt file.function is_robots(): boolSince: 2.1.0Returns: bool — True if requesting robots.txtUsage:if (...
Updated February 13, 2026
Robots Hooks
Filterswp_robotsFilters the directives to be included in the robots meta tag.apply_filters( 'wp_robots', array $robots ): arraySince: 5.7.0Parameters:$robots — Associative array...
Updated February 13, 2026
Robots API
Controls robots.txt generation and meta robots directives for search engine crawlers.Since: 2.1.0 (robots.txt), 5.7.0 (meta robots) Source: wp-includes/robots-template.php, wp-includes/functions.php, wp-includes/query.phpComponentsComponentDescriptionfunctions.mdCore...
Updated February 13, 2026