Inpsyde\MultilingualPress\Asset\Script::add_data PHP Method

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);