mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Add WPML compatibility to the settings
This commit is contained in:
parent
336492d63d
commit
1bc7968e52
1 changed files with 2 additions and 0 deletions
|
@ -154,8 +154,10 @@ class Settings implements ContainerInterface {
|
|||
'woocommerce-paypal-payments'
|
||||
),
|
||||
);
|
||||
|
||||
foreach ( $defaults as $key => $value ) {
|
||||
if ( isset( $this->settings[ $key ] ) ) {
|
||||
$this->settings[ $key ] = apply_filters( 'woocommerce_paypal_payments_settings_value', $this->settings[ $key ], $key );
|
||||
continue;
|
||||
}
|
||||
$this->settings[ $key ] = $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue