GC_Dependencies::get_data()
最后更新于:2021-11-27 14:26:20
GC_Dependencies::get_data( string$handle, string$key)Get extra item data.
参数
- $handle
-
(string) (Required) Name of the item. Should be unique.
- $key
-
(string) (Required) The data key.
响应
(mixed) Extra item data (string), false otherwise.
源文件
文件: gc-includes/class.gc-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 ];
}