View Categories

wpgmza_localized_strings

< 1 min read

Allows you to localize translated strings into the JavaScript engine. Add your strings as key/value pairs where the key is a slug and the value is the translated text for the users locale.

Source

PHP

apply_filters(‘wpgmza_localized_strings’, $strings);

Arguments

  • $strings : The localized (translated) strings for use in JavaScript (array)

Requirements

  • Must return $strings with your changes in place

Files

  • includes/class.strings.php