wp_update_comment


wp_update_comment ( $commentarr, $wp_error = false )

Parameters:
  • (array) commentarr Contains information on the comment.
  • (bool) wp_error Optional. Whether to return a WP_Error on failure. Default false.
Returns:
  • (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: .

Description

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_delete_comment, wp_unspam_comment, wp_spam_comment

Top Google Results

User discussions

wpseek mobile