um_enqueue_localize_data

Hook type

Filter

Description

Extend UM localized data

Parameters

$data

(array) Localize Array

Usage

add_filter( 'um_enqueue_localize_data', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_enqueue_localize_data', 'my_enqueue_localize_data', 10, 1 );
function my_enqueue_localize_data( $data ) {
    // your code here
return $data;
}
?>

Change Log

Since: 2.0

Source

um_enqueue_localize_data is located in includes/core/class-enqueue.php::line 136