WP_Dependencies::add_data

SummerySummery

Add extra item data.

Syntax

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

DescriptionDescription

Adds data to a registered item.

ParametersParameters

$handle

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

$key

(string) (Required) The data key.

$value

(mixed) (Required) The data value.

ReturnReturn

(bool) True on success, false on failure.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.6.0 Introduced.
Scroll to Top