Automattic\WooCommerce\Internal\Admin\WCPayPromotion

WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed │ public static │ WC 1.0

Check if the promotional gateway has been dismissed.

Метод класса: WCPaymentGatewayPreInstallWCPayPromotion{}

Хуков нет.

Возвращает

bool.

Использование

$result = WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed();

Код WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed() WC 11.2.2

public static function is_dismissed() {
	$settings = get_option( 'woocommerce_' . self::GATEWAY_ID . '_settings', array() );
	return isset( $settings['is_dismissed'] ) && 'yes' === $settings['is_dismissed'];
}