Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Inpsyde
MultilingualPress
Asset
Script
add_data
Inpsyde\MultilingualPress\Asset\Script::add_data PHP Method
Script Interface Documentation
Show file
Open project: inpsyde/multilingual-press
add_data()
public
method
Makes the given data available for the script.
Since:
3.0.0
public
add_data
(
string
$object_name
,
array
$data
) :
static
$object_name
string
The name of the JavaScript variable holding the data.
$data
array
The data to be made available for the script.
return
static
Script instance.
public function add_data($object_name, array $data);
Script
add_data
clear_data
data