_WP_Dependency::add_data( string $name, mixed $data )

Add handle data.


Parameters

$name

(Required) The data key to add.

$data

(Required) The data value to add.


Return

(bool) False if not scalar, true otherwise.


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;
	}

Changelog

Changelog
Version Description
WP-2.6.0 Introduced.