GC_Dependencies::add_data()
最后更新于:2021-11-27 14:08:24
GC_Dependencies::add_data( string$handle, string$key, mixed$value)Add extra item data.
参数
- $handle
-
(string) (Required) Name of the item. Should be unique.
- $key
-
(string) (Required) The data key.
- $value
-
(mixed) (Required) The data value.
响应
(bool) True on success, false on failure.
源文件
文件: gc-includes/class.gc-dependencies.php
public function add_data( $handle, $key, $value ) {
if ( ! isset( $this->registered[ $handle ] ) ) {
return false;
}
return $this->registered[ $handle ]->add_data( $key, $value );
}