Automattic\WooCommerce\Gateways\PayPal
Notices::has_account_restriction_flag
Check if there's a flag indicating PayPal account restriction.
Method of the class: 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.5.0 | Introduced. |
Notices::has_account_restriction_flag() Notices::has account restriction flag code WC 10.7.0
private function has_account_restriction_flag(): bool {
return 'yes' === get_option( 'woocommerce_paypal_account_restricted_status', 'no' );
}