Automattic\WooCommerce\Gateways\PayPal

Notices::clear_account_restriction_flag │ public static │ WC 10.5.0

Clear the flag indicating PayPal account restriction.

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

Хуков нет.

Возвращает

void. Ничего (null).

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

$result = Notices::clear_account_restriction_flag(): void;

Список изменений

С версии 10.5.0 Введена.

Код Notices::clear_account_restriction_flag() WC 11.2.2

public static function clear_account_restriction_flag(): void {
	if ( 'yes' === get_option( 'woocommerce_paypal_account_restricted_status', 'no' ) ) {
		update_option( 'woocommerce_paypal_account_restricted_status', 'no' );
	}
}