mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add filter to change the smart button locale
This commit is contained in:
parent
de8e78fde5
commit
7e05be3076
1 changed files with 1 additions and 0 deletions
|
@ -1204,6 +1204,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
}
|
||||
|
||||
$locale = $this->settings->has( 'smart_button_language' ) ? $this->settings->get( 'smart_button_language' ) : '';
|
||||
$locale = (string) apply_filters( 'woocommerce_paypal_payments_smart_buttons_locale', $locale );
|
||||
|
||||
if ( $locale ) {
|
||||
$params['locale'] = $locale;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue