首页 WordPress函数大全 add_comment_meta()

add_comment_meta()

2020-05-02 / 3402阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

add_comment_meta( int $comment_id, string $meta_key, mixed $meta_value, bool $unique = false )

将元数据字段添加到注释。

描述

参数

$comment_id

(int)
(Required)
Comment ID.

$meta_key

(string)
(Required)
Metadata name.

$meta_value

(mixed)
(Required)
Metadata value.

$unique

(bool)
(Optional)
Whether the same key should not be added.

Default value: false

返回

(int|bool) Meta ID on success, false on failure.

大家谈论
    我的见解