WC_Gateway_Paypal_Notices::has_account_restriction_flagprivateWC 10.4.0

Check if there's a flag indicating PayPal account restriction.

Method of the class: WC_Gateway_Paypal_Notices{}

No Hooks.

Returns

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->has_account_restriction_flag(): bool;

Changelog

Since 10.4.0 Introduced.

WC_Gateway_Paypal_Notices::has_account_restriction_flag() code WC 10.4.3

private function has_account_restriction_flag(): bool {
	return 'yes' === get_option( 'woocommerce_paypal_account_restricted_status', 'no' );
}