wp_update_comment ( $commentarr, $wp_error = false )

  • (array) commentarr Contains information on the comment.
  • (bool) wp_error Optional. Whether to return a WP_Error on failure. Default false.
  • (int|false|WP_Error) The value 1 if the comment was updated, 0 if not updated. False or a WP_Error object on failure.
Defined at:
Change Log:
  • 4: .
  • 5: .
  • 5: .


Updates an existing comment in the database.Filters the comment and makes sure certain fields are valid before updating.

Related Functions

wp_update_comment_count, wp_update_core, wp_unspam_comment, wp_delete_comment, wp_spam_comment

Top Google Results

User discussions

wpseek mobile