WP_Dependencies::add_data( string $handle, string $key, mixed $value )

Add extra item data.


Description

Adds data to a registered item.


Parameters

$handle

(Required) Name of the item. Should be unique.

$key

(Required) The data key.

$value

(Required) The data value.


Return

(bool) True on success, false on failure.


Source

File: wp-includes/class.wp-dependencies.php

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

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

Changelog

Changelog
Version Description
WP-2.6.0 Introduced.