Yoast\WP\SEO\Abilities\Application

Score_Retriever::get_readability_scorespublicYoast 1.0

Retrieves the readability scores for the most recently modified posts.

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

Хуков нет.

Возвращает

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

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

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

Код Score_Retriever::get_readability_scores() Yoast 27.7

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

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