mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Force enabled the styling per location option
This commit is contained in:
parent
69a9090e4e
commit
adf7a22301
1 changed files with 9 additions and 5 deletions
|
@ -40,11 +40,12 @@ class StylingSettingsMapHelper {
|
|||
public function map(): array {
|
||||
|
||||
$mapped_settings = array(
|
||||
'smart_button_locations' => '',
|
||||
'pay_later_button_locations' => '',
|
||||
'disable_funding' => '',
|
||||
'googlepay_button_enabled' => '',
|
||||
'applepay_button_enabled' => '',
|
||||
'smart_button_locations' => '',
|
||||
'pay_later_button_locations' => '',
|
||||
'disable_funding' => '',
|
||||
'googlepay_button_enabled' => '',
|
||||
'applepay_button_enabled' => '',
|
||||
'smart_button_enable_styling_per_location' => '',
|
||||
);
|
||||
|
||||
foreach ( $this->locations_map() as $old_location_name => $new_location_name ) {
|
||||
|
@ -70,6 +71,9 @@ class StylingSettingsMapHelper {
|
|||
case 'smart_button_locations':
|
||||
return $this->mapped_smart_button_locations_value( $styling_models );
|
||||
|
||||
case 'smart_button_enable_styling_per_location':
|
||||
return true;
|
||||
|
||||
case 'pay_later_button_locations':
|
||||
return $this->mapped_pay_later_button_locations_value( $styling_models );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue