wp_update_comment_data

wp_update_comment_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_update_comment_data') is found 1 times:

  • /wp-includes/comment.php line 2593
    	 * @param array|WP_Error $data       The new, processed comment data, or WP_Error.
    	 * @param array          $comment    The old, unslashed comment data.
    	 * @param array          $commentarr The new, raw comment data.
    	 */
    	$data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr );
    
    	// Do not carry on on failure.
    	if ( is_wp_error( $data ) ) {
    		if ( $wp_error ) {
    			return $data;
    		} else {
    

See this hook used in plugins: