Get extra item data.
Gets data associated with a registered item.
(string) (Required) Name of the item. Should be unique.
(string) (Required) The data key.
(mixed) Extra item data (string), false otherwise.
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 ]; }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_dependencies/get_data