Inpsyde\MultilingualPress\Asset\Script::add_data PHP Méthode

add_data() public méthode

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.
Résultat static Script instance.
    public function add_data($object_name, array $data);