Add extra item data.
Adds data to a registered item.
(string) (Required) Name of the item. Should be unique.
(string) (Required) The data key.
(mixed) (Required) The data value.
(bool) True on success, false on failure.
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 ); }
Version | Description |
---|---|
2.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_Dependencies/add_data