2020-05-02 / 3373阅 / 悠然
添加指定对象的元数据。
(string)
(Required)
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
(int)
(Required)
ID of the object metadata is for.
(string)
(Required)
Metadata key.
(mixed)
(Required)
Metadata value. Must be serializable if non-scalar.
(bool)
(Optional)
Whether the specified metadata key should be unique for the object. If true, and the object already has a value for the specified metadata key, no change will be made.
Default value: false
(int|false) The meta ID on success, false on failure.