Allows you to add to the array which is localized to the DOM for use in JavaScript modules. Caution should be used here as altering existing variables can have a negative affect on some modules.
Source
PHP
apply_filters(‘wpgmza_plugin_get_localized_data’, $data);
Arguments
- $data : The data to localize into DOM (array)
Requirements
- Must return the $data to be localized
Files
- includes/class.plugin.php
