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

Add handle data.

Parameters Parameters


(string) (Required) The data key to add.


(mixed) (Required) The data value to add.

Top ↑

Return Return

(bool) False if not scalar, true otherwise.

Top ↑

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;

Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.