public enqueue_script_with_data ( Inpsyde\MultilingualPress\Asset\Script | string $script, string $object_name, array $data, boolean $in_footer = true ) : boolean | ||
$script | Inpsyde\MultilingualPress\Asset\Script | string | Script object or handle. |
$object_name | string | The name of the JavaScript variable holding the data. |
$data | array | The data to be made available for the script. |
$in_footer | boolean | Optional. Enqueue in the footer? Defaults to true. |
return | boolean | Whether or not the script was enqueued successfully. |