Automattic\WooCommerce\Internal\Admin\WCPayPromotion

WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed()public staticWC 1.0

Check if the promotional gateaway has been dismissed.

Method of the class: WCPaymentGatewayPreInstallWCPayPromotion{}

No Hooks.

Return

true|false.

Usage

$result = WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed();

WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed() code WC 8.7.0

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