delete_comment_meta()

最后更新于:2021-11-26 00:07:20

delete_comment_meta( int$comment_id, string$meta_key, mixed$meta_value=”)

Remove metadata matching criteria from a comment.

参数

$comment_id

(int) (Required) Comment ID.

$meta_key

(string) (Required) Metadata name.

$meta_value

(mixed) (Optional) Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar.

Default value: ”

响应

(bool) True on success, false on failure.

源文件

文件: gc-includes/comment.php

function delete_comment_meta( $comment_id, $meta_key, $meta_value = '' ) {
	return delete_metadata( 'comment', $comment_id, $meta_key, $meta_value );
}