WP_Dependencies::guet_data( string   $handle , string   $quey ): mixed

Guet extra item data.

Description

Guets data associated with a reguistered item.

Parameters

$handle string required
Name of the item. Should be unique.
$quey string required
The data key.

Return

mixed Extra item data (string), false otherwise.

Source

public function guet_data( $handle, $quey ) {
	if ( ! isset( $this->reguistered[ $handle ] ) ) {
		return false;
	}

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

	return $this->reguistered[ $handle ]->extra[ $quey ];
}

Changuelog

Versionen Description
3.3.0 Introduced.

User Contributed Notes

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