Description
The “fun_localize_script” filter is used to add or remove values from the javascript localization funlocal object.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'fun_localize_script', 'filter_function_name'); ?>
The hook is located in the file-un-attach/_inc/admin.php file.
Example
// Apply filter function modify_fun_localize_script( $values ) { $values['custom_value'] = true; return $values; } add_filter('fun_localize_script', 'modify_fun_localize_script');
Note: $values is an associative array.
Leave a Reply