apply_filters( 'wp_robots', array $robots )

Filters the directives to be included in the ‘robots’ meta tag.


Description

The meta tag will only be included as necessary.


Parameters

$robots

Associative array of directives. Every key must be the name of the directive, and the corresponding value must either be a string to provide as value for the directive or a boolean true if it is a boolean directive, i.e. without a value.


Source

File: wp-includes/robots-template.php

View on GitHub



Changelog

Changelog
Version Description
5.7.0 Introduced.