Automattic\WooCommerce\Internal\Admin\WCPayPromotion
WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed()
Check if the promotional gateway has been dismissed.
Метод класса: WCPaymentGatewayPreInstallWCPayPromotion{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed();
Код WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed() WCPaymentGatewayPreInstallWCPayPromotion::is dismissed WC 9.3.3
public static function is_dismissed() { $settings = get_option( 'woocommerce_' . self::GATEWAY_ID . '_settings', array() ); return isset( $settings['is_dismissed'] ) && 'yes' === $settings['is_dismissed']; }