Change the script localize name

This commit is contained in:
Narek Zakarian 2022-12-21 18:01:19 +04:00
parent 0763e73cdb
commit 6e5af8f0ab
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 2 additions and 2 deletions

View file

@ -192,7 +192,7 @@ document.addEventListener(
if(selectedLocations.length === 0) {
hideElements(groupToHideOnChecked.concat(stylingPerElementWrapperSelector));
if (emptySmartButtonLocationMessage.length === 0) {
jQuery(PayPalCommerceGatewaySettings.empty_smart_button_location_message).insertAfter(jQuery(smartButtonLocationsSelector).find('.description'));
jQuery(PayPalCommerceSettings.empty_smart_button_location_message).insertAfter(jQuery(smartButtonLocationsSelector).find('.description'));
}
}

View file

@ -112,7 +112,7 @@ class OnboardingAssets {
);
wp_localize_script(
'ppcp-settings',
'PayPalCommerceGatewaySettings',
'PayPalCommerceSettings',
array(
'empty_smart_button_location_message' => sprintf(
'<p class="description ppcp-empty-smart-button-location">%1$s</p>',