Yoast\WP\SEO\Routes

Indexables_Page_Route::get_least_seo_score()publicYoast 1.0

Gets the posts with the smallest readability scores.

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

Хуков нет.

Возвращает

WP_REST_Response. The posts with the smallest readability scores.

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

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

Код Indexables_Page_Route::get_least_seo_score() Yoast 19.10

public function get_least_seo_score() {
	$least_seo_score = $this->indexables_page_action->get_least_seo_score( $this->indexables_page_helper->get_buffer_size() );
	return new WP_REST_Response(
		[
			'json' => [
				'list'   => $least_seo_score,
				'length' => \count( $least_seo_score ),
			],
		]
	);
}