Automattic\WooCommerce\Internal\Admin\WCPayPromotion
WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed()
Check if the promotional gateway has been dismissed.
Method of the class: WCPaymentGatewayPreInstallWCPayPromotion{}
No Hooks.
Return
true|false
.
Usage
$result = WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed();
WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed() WCPaymentGatewayPreInstallWCPayPromotion::is dismissed code WC 9.7.1
public static function is_dismissed() { $settings = get_option( 'woocommerce_' . self::GATEWAY_ID . '_settings', array() ); return isset( $settings['is_dismissed'] ) && 'yes' === $settings['is_dismissed']; }