mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Check for country first for better performance.
This commit is contained in:
parent
9ea71be37b
commit
4e8379af02
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class PayUponInvoiceHelper {
|
|||
* @return bool
|
||||
*/
|
||||
public function is_pui_ready_in_admin(): bool {
|
||||
if ( $this->pui_product_status->pui_is_active() && $this->shop_country === 'DE' ) {
|
||||
if ( $this->shop_country === 'DE' && $this->pui_product_status->pui_is_active() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue