WC_Gateway_Paypal_Notices::has_account_restriction_flag
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() 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' );
}