Yoast\WP\SEO\Actions

Indexables_Page_Action::remove_all_indexables_from_ignore_list()publicYoast 1.0

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.

Код Indexables_Page_Action::remove_all_indexables_from_ignore_list() Yoast 19.11

public function remove_all_indexables_from_ignore_list( $ignore_list_name ) {
	if ( ! $this->indexables_page_helper->is_valid_ignore_list_name( $ignore_list_name ) ) {
		return false;
	};
	return $this->options_helper->set( $ignore_list_name, [] );
}