pre_comment_author_email

pre_comment_author_email

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_comment_author_email') is found 2 times:

  • /wp-includes/comment.php line 612
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
         * @since 1.5.0
         *
         * @param string $author_email_cookie The comment author email cookie.
         */
        $comment_author_email = apply_filters( 'pre_comment_author_email', $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] );
        $comment_author_email = wp_unslash( $comment_author_email );
        $comment_author_email = esc_attr( $comment_author_email );
     
        $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] = $comment_author_email;
    }
  • /wp-includes/comment.php line 2155
    2151
    2152
    2153
    2154
    2155
    2156
    2157
    2158
    2159
    2160
        $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] );
        /** This filter is documented in wp-includes/comment.php */
        $commentdata['comment_author_url'] = apply_filters( 'pre_comment_author_url', $commentdata['comment_author_url'] );
        /** This filter is documented in wp-includes/comment.php */
        $commentdata['comment_author_email'] = apply_filters( 'pre_comment_author_email', $commentdata['comment_author_email'] );
     
        $commentdata['filtered'] = true;
     
        return $commentdata;
    }