Yoast\WP\SEO\Abilities\Application

Score_Retriever::get_seo_scorespublicYoast 1.0

Retrieves the SEO scores for the most recently modified posts.

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

Хуков нет.

Возвращает

Массив. array<string, string|null>> The SEO score data for each post.

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

$Score_Retriever = new Score_Retriever();
$Score_Retriever->get_seo_scores( $input ): array;
$input(массив) (обязательный)
.

Код Score_Retriever::get_seo_scores() Yoast 28.2

public function get_seo_scores( array $input ): array {
	$indexables = $this->get_recent_indexables( $this->get_number_of_posts( $input ) );

	return \array_map( [ $this, 'build_seo_score_for_indexable' ], $indexables );
}