Yoast\WP\SEO\Helpers
Robots_Helper::set_robots_no_index
Sets the robots index to noindex.
Метод класса: Robots_Helper{}
Хуков нет.
Возвращает
array. The altered robots string.
Использование
$Robots_Helper = new Robots_Helper(); $Robots_Helper->set_robots_no_index( $robots );
- $robots(массив) (обязательный)
- The current robots value.
Код Robots_Helper::set_robots_no_index() Robots Helper::set robots no index Yoast 28.9
public function set_robots_no_index( $robots ) {
$robots['index'] = 'noindex';
return $robots;
}