Yoast\WP\SEO\Abilities\Application
Score_Retriever::get_recent_indexables
Retrieves the most recently modified post indexables.
Метод класса: Score_Retriever{}
Хуков нет.
Возвращает
Массив<Объект>. The indexable objects.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_recent_indexables( $number_of_posts ): array;
- $number_of_posts(int) (обязательный)
- The number of posts to retrieve.
Код Score_Retriever::get_recent_indexables() Score Retriever::get recent indexables Yoast 27.7
private function get_recent_indexables( int $number_of_posts ): array {
return $this->indexable_repository->get_recently_modified_posts( 'post', $number_of_posts, false );
}