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

Add extra item data.


Description Description

Adds data to a registered item.


Parameters Parameters

$handle

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

$key

(string) (Required) The data key.

$value

(mixed) (Required) The data value.


Top ↑

Return Return

(bool) True on success, false on failure.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.