WPSEO_Meta_Columns::create_no_index_filter
Creates a filter to retrieve posts that were set to no-index.
Метод класса: WPSEO_Meta_Columns{}
Хуков нет.
Возвращает
Массив<Массив<Строку>>. Array containin the no-index filter.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->create_no_index_filter();
Код WPSEO_Meta_Columns::create_no_index_filter() WPSEO Meta Columns::create no index filter Yoast 26.7
protected function create_no_index_filter() {
return [
[
'key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex',
'value' => '1',
'compare' => '=',
],
];
}