Automattic\WooCommerce\Gateways\PayPal

Notices::set_account_restriction_flagpublic staticWC 10.5.0

Set the flag indicating PayPal account restriction.

Method of the class: Notices{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 10.5.0 Introduced.

Notices::set_account_restriction_flag() code WC 10.8.1

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