Yoast\WP\SEO\Introductions\Application
Black_Friday_Announcement::should_show
Returns whether this introduction should show.
Метод класса: Black_Friday_Announcement{}
Хуков нет.
Возвращает
bool. Whether this introduction should show.
Использование
$Black_Friday_Announcement = new Black_Friday_Announcement(); $Black_Friday_Announcement->should_show();
Код Black_Friday_Announcement::should_show() Black Friday Announcement::should show Yoast 28.9
public function should_show() {
return $this->current_page_helper->is_yoast_seo_page() && ! $this->product_helper->is_premium() && $this->promotion_manager->is( 'black-friday-promotion' );
}