Core Function
View Source on Trac ↗ wp_spam_comment()
wp_spam_comment( mixed $comment_id ) Marks a comment as Spam.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Comment) $comment_id Comment ID or WP_Comment object. Required |
Return Value
(bool)
True on success, false on failure.
Function Information
Since Version
2.9.0
Source File
wp-includes/comment.php
Advertisement