WPDev.one
Core Function
View Source on Trac ↗

delete_comment_meta()

delete_comment_meta( mixed $comment_id, mixed $meta_key, mixed $meta_value = '' )

Removes metadata matching criteria from a comment.

Parameters 3 required

Name / Type Description
$comment_id
int

Comment ID.

Required
$meta_key
string

Metadata name.

Required
mixed

$meta_value Optional. Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar. Default empty string.

Required

Return Value

(bool)
True on success, false on failure.

Function Information

Since Version
2.9.0
Source File
wp-includes/comment.php
Advertisement