apply_filters( 'um_enqueue_localize_data', $variables ) → {array}
Filters data array for localize frontend scripts.
Parameters:
Name | Type | Description |
---|---|---|
$variables |
array | Data to localize. |
- Since:
- 2.0.0
- Source:
Returns:
Data to localize.
- Type
- array
Example
function my_enqueue_localize_data( $variables ) {
// your code here
return $variables;
}
add_filter( 'um_enqueue_localize_data', 'my_enqueue_localize_data' );