Automattic\WooCommerce\Gateways\PayPal

Notices::clear_account_restriction_flagpublic staticWC 10.5.0

Clear the flag indicating PayPal account restriction.

Method of the class: Notices{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 10.5.0 Introduced.

Notices::clear_account_restriction_flag() code WC 10.7.0

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' );
	}
}