Yoast\WP\SEO\Presenters\Admin
Badge_Presenter::is_group_still_new()
Check whether the new badge should be shown according to the group it is in.
Метод класса: Badge_Presenter{}
Хуков нет.
Возвращает
true|false
. True if still new.
Использование
$Badge_Presenter = new Badge_Presenter(); $Badge_Presenter->is_group_still_new();
Код Badge_Presenter::is_group_still_new() Badge Presenter::is group still new Yoast 22.4
public function is_group_still_new() { // If there's no group configured, the new badge is always active. if ( ! $this->group ) { return true; } return $this->badge_group_names->is_still_eligible_for_new_badge( $this->group ); }