Yoast\WP\SEO\AI\Content_Planner\User_Interface
Content_Planner_Integration::is_minimum_posts_met
Determines whether the site has at least the minimum number of published posts.
Reuses Indexable_Repository::get_recently_modified_posts() with a limit equal to the threshold, so we never load more rows than necessary just to answer a "≥ N" question.
Метод класса: Content_Planner_Integration{}
Хуков нет.
Возвращает
true|false. Whether the site has met the minimum-posts threshold.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_minimum_posts_met(): bool;
Код Content_Planner_Integration::is_minimum_posts_met() Content Planner Integration::is minimum posts met Yoast 27.7
private function is_minimum_posts_met(): bool {
$posts = $this->indexable_repository->get_recently_modified_posts( 'post', self::MIN_PUBLISHED_POSTS, false );
return \count( $posts ) >= self::MIN_PUBLISHED_POSTS;
}