Yoast\WP\SEO\Promotions\Application
Promotion_Manager_Interface::is()
Whether the promotion is effective.
Метод класса: Promotion_Manager_Interface{}
Хуков нет.
Возвращает
true|false
. Whether the promotion is effective.
Использование
$Promotion_Manager_Interface = new Promotion_Manager_Interface(); $Promotion_Manager_Interface->is( $promotion_name ): bool;
- $promotion_name(строка) (обязательный)
- The name of the promotion.
Код Promotion_Manager_Interface::is() Promotion Manager Interface::is Yoast 24.4
public function is( string $promotion_name ): bool;