wp_trash_comment


wp_trash_comment ( $comment_id )

Parameters:
  • (int|WP_Comment) comment_id Comment ID or WP_Comment object.
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Moves a comment to the TrashIf Trash is disabled, comment is permanently deleted.

Related Functions

wp_untrash_comment, wp_trash_post_comments, wp_untrash_post_comments, wp_filter_comment, wp_spam_comment

Top Google Results

User discussions

wpseek mobile