Yoast\WP\SEO\Presentations

Indexable_Presentation::get_base_robots()protectedYoast 1.0

Gets the base robots value.

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

Хуков нет.

Возвращает

Массив. The base robots value.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_base_robots();

Код Indexable_Presentation::get_base_robots() Yoast 22.4

protected function get_base_robots() {
	return [
		'index'             => ( $this->model->is_robots_noindex === true ) ? 'noindex' : 'index',
		'follow'            => ( $this->model->is_robots_nofollow === true ) ? 'nofollow' : 'follow',
		'max-snippet'       => 'max-snippet:-1',
		'max-image-preview' => 'max-image-preview:large',
		'max-video-preview' => 'max-video-preview:-1',
	];
}