WPSEO_Meta_Columns::create_no_focus_keyword_filter
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() WPSEO Meta Columns::create no focus keyword filter Yoast 28.0
protected function create_no_focus_keyword_filter() {
return [
[
'key' => WPSEO_Meta::$meta_prefix . 'linkdex',
'value' => 'needs-a-value-anyway',
'compare' => 'NOT EXISTS',
],
];
}