Yoast\WP\SEO\Presentations

Indexable_Error_Page_Presentation::generate_robots()publicYoast 1.0

Generates the robots value.

Метод класса: Indexable_Error_Page_Presentation{}

Хуков нет.

Возвращает

Массив. The robots value.

Использование

$Indexable_Error_Page_Presentation = new Indexable_Error_Page_Presentation();
$Indexable_Error_Page_Presentation->generate_robots();

Код Indexable_Error_Page_Presentation::generate_robots() Yoast 22.3

public function generate_robots() {
	$robots = $this->get_base_robots();

	$robots['index'] = 'noindex';

	return $this->filter_robots( $robots );
}