WPSEO_Meta_Columns::create_no_focus_keyword_filter()protectedYoast 1.0

Creates a filter to retrieve posts that have no keyword set.

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

Хуков нет.

Возвращает

Массив. Array containing the no focus keyword filter.

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

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

Код WPSEO_Meta_Columns::create_no_focus_keyword_filter() Yoast 22.4

protected function create_no_focus_keyword_filter() {
	return [
		[
			'key'     => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
			'value'   => 'needs-a-value-anyway',
			'compare' => 'NOT EXISTS',
		],
		[
			'key'     => WPSEO_Meta::$meta_prefix . 'linkdex',
			'value'   => 'needs-a-value-anyway',
			'compare' => 'NOT EXISTS',
		],
	];
}