Summery Summery
Add extra item data.
Syntax Syntax
Description Description
Adds data to a registered item.
Parameters Parameters
- $handle
-
(Required) Name of the item. Should be unique.
- $key
-
(Required) The data key.
- $value
-
(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
Version | Description |
---|---|
2.6.0 | Introduced. |