Yoast\WP\SEO\Abilities\Application
Score_Retriever::get_inclusive_language_scores
Retrieves the inclusive language scores for the most recently modified posts.
Метод класса: Score_Retriever{}
Хуков нет.
Возвращает
array<int,. array<string, string>> The inclusive language score data for each post.
Использование
$Score_Retriever = new Score_Retriever(); $Score_Retriever->get_inclusive_language_scores( $input ): array;
- $input(array<string, int>) (обязательный)
- The input containing optional
'number_of_posts'.
Код Score_Retriever::get_inclusive_language_scores() Score Retriever::get inclusive language scores Yoast 28.4
public function get_inclusive_language_scores( array $input ): array {
$indexables = $this->get_recent_indexables( $this->get_number_of_posts( $input ) );
return \array_map( [ $this, 'build_inclusive_language_score_for_indexable' ], $indexables );
}