Summery Summery
Get extra item data.
Syntax Syntax
Description Description
Gets data associated with a registered item.
Parameters Parameters
- $handle
-
(Required) Name of the item. Should be unique.
- $key
-
(Required) The data key.
Return Return
(mixed) Extra item data (string), false otherwise.
Source Source
File: wp-includes/class.wp-dependencies.php
* @param string $key The data key.
* @return mixed Extra item data (string), false otherwise.
*/
public function get_data( $handle, $key ) {
if ( ! isset( $this->registered[ $handle ] ) ) {
return false;
}
if ( ! isset( $this->registered[ $handle ]->extra[ $key ] ) ) {
return false;
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |