_WP_Dependency::add_data( string $name, mixed $data )
Add handle data.
Description Description
Parameters Parameters
- $name
-
(string) (Required) The data key to add.
- $data
-
(mixed) (Required) The data value to add.
Return Return
(bool) False if not scalar, true otherwise.
Source Source
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; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |