Add handle data.
(string) (Required) The data key to add.
(mixed) (Required) The data value to add.
(bool) False if not scalar, true otherwise.
File: wp-includes/class-wp-dependency.php
public function add_data( $name, $data ) {
if ( ! is_scalar( $name ) ) {
return false;
}
$this->extra[ $name ] = $data;
return true;
} | Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/_wp_dependency/add_data