mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add filter for button language
This commit is contained in:
parent
9a48cd6508
commit
c550e90057
1 changed files with 4 additions and 3 deletions
|
@ -173,9 +173,10 @@ class DataToAppleButtonScripts {
|
|||
'<div id="applepay-container">'
|
||||
. $nonce
|
||||
. '</div>';
|
||||
$type = $this->settings->has( 'applepay_button_type' ) ? $this->settings->get( 'applepay_button_type' ) : '';
|
||||
$color = $this->settings->has( 'applepay_button_color' ) ? $this->settings->get( 'applepay_button_color' ) : '';
|
||||
$lang = $this->settings->has( 'applepay_button_language' ) ? $this->settings->get( 'applepay_button_language' ) : '';
|
||||
$type = $this->settings->has('applepay_button_type') ? $this->settings->get('applepay_button_type') : '';
|
||||
$color = $this->settings->has('applepay_button_color') ? $this->settings->get('applepay_button_color') : '';
|
||||
$lang = $this->settings->has('applepay_button_language') ? $this->settings->get('applepay_button_language') : '';
|
||||
$lang = apply_filters('woocommerce_paypal_payments_applepay_button_language', $lang);
|
||||
|
||||
return array(
|
||||
'sdk_url' => $this->sdk_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue