Yoast\WP\SEO\AI\Content_Planner\Infrastructure\Recent_Content
Recent_Content_Collector::collect
Collects the 100 most recent published, indexed posts.
Метод класса: Recent_Content_Collector{}
Хуков нет.
Возвращает
Post_List. The list of recent posts.
Использование
$Recent_Content_Collector = new Recent_Content_Collector(); $Recent_Content_Collector->collect( $post_type ): Post_List;
- $post_type(строка) (обязательный)
- The post type to collect.
Код Recent_Content_Collector::collect() Recent Content Collector::collect Yoast 28.9
public function collect( string $post_type ): Post_List {
$results = $this->indexable_repository->get_recently_modified_posts( $post_type, self::LIMIT, false );
return $this->map_to_post_list( $results );
}