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