WordPress at a glance
function is not described

WP_Dependencies::add_data() public WP 2.6.0

Add extra item data.

Adds data to a registered item.

{} It's a method of the class: WP_Dependencies{}

No Hooks.

Return

true|false. True on success, false on failure.

Usage

$WP_Dependencies = new WP_Dependencies();
$WP_Dependencies->add_data( $handle, $key, $value );
$handle(string) (required)
Name of the item. Should be unique.
$key(string) (required)
The data key.
$value(mixed) (required)
The data value.

Changelog

Since 2.6.0 Introduced.

Code of WP_Dependencies::add_data() WP 5.7

<?php
public function add_data( $handle, $key, $value ) {
	if ( ! isset( $this->registered[ $handle ] ) ) {
		return false;
	}

	return $this->registered[ $handle ]->add_data( $key, $value );
}