public function update( $args, $assoc_args ) {
		$assoc_args = wp_slash( $assoc_args );
		parent::_update(
			$args,
			$assoc_args,
			function ( $params ) {
				if ( ! wp_update_comment( $params ) ) {
					return new WP_Error( 'Could not update comment.' );
				}

				return true;
			}
		);
	}
public function update( $args, $assoc_args ) {
		$assoc_args = wp_slash( $assoc_args );
		parent::_update(
			$args,
			$assoc_args,
			function ( $params ) {
				if ( ! wp_update_comment( $params ) ) {
					return new WP_Error( 'Could not update comment.' );
				}

				return true;
			}
		);
	}
public function update ( $ args , $ assoc_args ) { $ assoc_args = wp_slash ( $ assoc_args ) ; parent :: _update ( $ args , $ assoc_args , function ( $ params ) { if ( ! wp_update_comment ( $ params ) ) { return new WP_Error ( 'Could not update comment.' ) ; } return true ; } ) ; }
Updates one or more comments.

## OPTIONS

<id>...
: One or more IDs of comments to update.

--<field>=<value>
: One or more fields to update. See wp_update_comment().

## EXAMPLES

# Update comment.
$ wp comment update 123 --comment_author='That Guy'
Success: Updated comment 123.
Updates one or more comments .