Yoast\WP\SEO\Actions
Indexables_Page_Action::remove_all_indexables_from_ignore_list()
Устарела с версии 20.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Removes all indexables from 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->remove_all_indexables_from_ignore_list( $ignore_list_name );
- $ignore_list_name(строка) (обязательный)
- The name of the ignore-list.
Список изменений
Устарела с | 20.4 |
Код Indexables_Page_Action::remove_all_indexables_from_ignore_list() Indexables Page Action::remove all indexables from ignore list Yoast 21.5
public function remove_all_indexables_from_ignore_list( $ignore_list_name ) { \_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, [] ); }