mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #2308 from woocommerce/PCP-223-gateway-description-not-translatable-with-wpml
Add WPML compatibility to the settings (223)
This commit is contained in:
commit
3e6be85bb3
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