Omit PayPal Standard unless plugins cannot be installed
This commit is contained in:
parent
ff8d8c001d
commit
080c5b50e7
|
@ -1201,7 +1201,6 @@ class WC_Admin_Setup_Wizard {
|
||||||
$gateways = array(
|
$gateways = array(
|
||||||
'stripe' => $stripe,
|
'stripe' => $stripe,
|
||||||
'ppec_paypal' => $ppec_paypal,
|
'ppec_paypal' => $ppec_paypal,
|
||||||
'paypal' => $paypal,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( ! $can_stripe ) {
|
if ( ! $can_stripe ) {
|
||||||
|
@ -1233,11 +1232,9 @@ class WC_Admin_Setup_Wizard {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! current_user_can( 'install_plugins' ) ) {
|
if ( ! current_user_can( 'install_plugins' ) ) {
|
||||||
unset( $gateways['ppec_paypal'] );
|
$gateways = array(
|
||||||
unset( $gateways['stripe'] );
|
'paypal' => $paypal,
|
||||||
unset( $gateways['klarna_checkout'] );
|
);
|
||||||
unset( $gateways['klarna_payments'] );
|
|
||||||
unset( $gateways['square'] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $gateways;
|
return $gateways;
|
||||||
|
|
Loading…
Reference in New Issue