WPSEO_Statistics_Service::get_seo_scores_with_post_count()privateYoast 1.0

Get all SEO ranks and data associated with them.

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

Хуков нет.

Возвращает

Массив. An array of SEO scores and associated data.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_seo_scores_with_post_count();

Код WPSEO_Statistics_Service::get_seo_scores_with_post_count() Yoast 22.4

private function get_seo_scores_with_post_count() {
	$ranks = WPSEO_Rank::get_all_ranks();

	return array_map( [ $this, 'map_rank_to_widget' ], $ranks );
}