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: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Updates an existing comment in the database.Filters the comment and makes sure certain fields are valid before updating.