Yoast\WP\SEO\Routes

Indexables_Page_Route::get_setup_info()publicYoast 1.0

Устарела с версии 20.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Gets the necessary information to set up the indexables page.

Метод класса: Indexables_Page_Route{}

Хуков нет.

Возвращает

WP_REST_Response. The neccessary information to set up the indexables page.

Использование

$Indexables_Page_Route = new Indexables_Page_Route();
$Indexables_Page_Route->get_setup_info();

Список изменений

Устарела с 20.4

Код Indexables_Page_Route::get_setup_info() Yoast 22.4

public function get_setup_info() {
	\_deprecated_function( __METHOD__, 'Yoast SEO 20.4' );

	$setup_info = $this->indexables_page_action->get_setup_info( $this->indexables_page_helper->get_minimum_posts_threshold(), $this->indexables_page_helper->get_minimum_analyzed_posts_threshold() );
	return new WP_REST_Response(
		[
			'json' => $setup_info,
		]
	);
}