WP_Dependencies::get_data( string $handle, string $key )

Get extra item data.


Description Description

Gets data associated with a registered item.


Parameters Parameters

$handle

(string) (Required) Name of the item. Should be unique.

$key

(string) (Required) The data key.


Top ↑

Return Return

(mixed) Extra item data (string), false otherwise.


Top ↑

Source Source

File: wp-includes/class.wp-dependencies.php

	public function get_data( $handle, $key ) {
		if ( ! isset( $this->registered[ $handle ] ) ) {
			return false;
		}

		if ( ! isset( $this->registered[ $handle ]->extra[ $key ] ) ) {
			return false;
		}

		return $this->registered[ $handle ]->extra[ $key ];
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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