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.2

apply_filters('wp_update_comment_data') is found 1 times:

  • /wp-includes/comment.php line 2593
    2589
    2590
    2591
    2592
    2593
    2594
    2595
    2596
    2597
    2598
    2599
    * @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: