Yoast\WP\SEO\Actions
Indexables_Page_Action::update_ignored_indexables()
Устарела с версии 20.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Stores an indexable in an ignore-list.
Метод класса: Indexables_Page_Action{}
Хуков нет.
Возвращает
true|false
. Whether saving the ignore-list to the database succeeded.
Использование
$Indexables_Page_Action = new Indexables_Page_Action(); $Indexables_Page_Action->update_ignored_indexables( $ignore_list_name, $ignored_indexable_ids );
- $ignore_list_name(строка) (обязательный)
- The name of the ignore-list.
- $ignored_indexable_ids(массив) (обязательный)
- The IDs of the updated ignored indexables.
Список изменений
Устарела с | 20.4 |
Код Indexables_Page_Action::update_ignored_indexables() Indexables Page Action::update ignored indexables Yoast 21.6
public function update_ignored_indexables( $ignore_list_name, $ignored_indexable_ids ) { \_deprecated_function( __METHOD__, 'Yoast SEO 20.4' ); if ( ! $this->indexables_page_helper->is_valid_ignore_list_name( $ignore_list_name ) ) { return false; } return $this->options_helper->set( $ignore_list_name, $ignored_indexable_ids ); }