WP_Dependencies::add_data

Advertisement

Summery Summery

Add extra item data.

Syntax Syntax

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

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.

Return Return

(bool) True on success, false on failure.

Source Source

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

	 * @param mixed  $value  The data value.
	 * @return bool True on success, false on failure.
	 */
	public function add_data( $handle, $key, $value ) {
		if ( ! isset( $this->registered[ $handle ] ) ) {
			return false;
		}

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.