aioseop robots meta

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The All in One SEO Pack aioseop_robots_meta filter hook.

Description

$robots_meta = apply_filters( 'aioseop_robots_meta', $this->get_robots_meta() );

This filter can be used to filter the robots meta tag value.


Parameters (1)

0. (string)
the robots meta tag value as All in One SEO Pack has determined it.

Usage

The code example below can be used to change the robots meta tag value for a certain page.

add_filter( 'aioseop_robots_meta', 'change_robots_meta_value' );

function change_robots_meta_value( $robots_meta_value ) {
        if( is_single( 10 ) ) {
             $robots_meta_value = 'noindex,nofollow';
        }
        return $robots_meta_value;
}

Defined (1)

The filter is defined in the following location(s).

/modules/aioseop_class.php

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar