wp_robots
Like this:
Like Loading...
Appears in:
wordpress-5.7,
wordpress-5.7.1,
wordpress-5.7.2,
wordpress-5.8,
wordpress-5.8.1,
wordpress-5.8.2,
wordpress-5.8.3,
wordpress-5.9,
wordpress-5.9.1,
wordpress-5.9.2,
wordpress-5.9.3,
wordpress-6.0,
wordpress-6.0.1,
wordpress-6.0.2,
wordpress-6.0.3,
wordpress-6.1,
wordpress-6.1.1,
wordpress-6.2,
wordpress-6.2.1,
wordpress-6.2.2,
wordpress-6.3,
wordpress-6.3.1,
wordpress-6.3.2,
wordpress-6.4,
wordpress-6.4.1,
wordpress-6.4.2,
wordpress-6.4.3,
wordpress-6.5,
wordpress-6.5.2,
wordpress-6.5.3,
wordpress-6.5.4,
wordpress-6.5.5,
wordpress-6.6,
wordpress-6.6.1,
wordpress-6.6.2,
wordpress-6.7,
wordpress-6.7.1,
wordpress-6.7.2Hook Type: filter
See hook in action
Displaying hooks found in version: wordpress-6.7.2
apply_filters('wp_robots') is found 1 times:
- /wp-includes/robots-template.php line 32
28 29 30 31 32 33 34 35 36 37 38 | * @param array $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.
*/
$robots = apply_filters( 'wp_robots' , array () );
$robots_strings = array ();
foreach ( $robots as $directive => $value ) {
if ( is_string ( $value ) ) {
$robots_strings [] = "{$directive}:{$value}" ;
|
Like this:
Like Loading...
See this hook used in plugins: