Yoast\WP\SEO\Routes

Indexables_Page_Route::get_setup_info()publicYoast 1.0

Gets the neccessary 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();

Код Indexables_Page_Route::get_setup_info() Yoast 19.11

public function get_setup_info() {
	$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,
		]
	);
}