WPSEO_Statistics_Service::get_seo_scores_with_post_count
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() WPSEO Statistics Service::get seo scores with post count Yoast 26.3
private function get_seo_scores_with_post_count() {
$ranks = WPSEO_Rank::get_all_ranks();
return array_map( [ $this, 'map_rank_to_widget' ], $ranks );
}