comment_email

comment_email

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_email') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 1006
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    if ( $this->user_can ) {
        if ( ! empty( $comment->comment_author_email ) ) {
            /** This filter is documented in wp-includes/comment-template.php */
            $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
     
            if ( ! empty( $email ) && '@' !== $email ) {
                printf( '<a href="%1$s">%2$s</a><br />', esc_url( 'mailto:' . $email ), esc_html( $email ) );
            }
        }
  • /wp-includes/comment-template.php line 203
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    *
     * @param string     $comment_author_email The comment author's email address.
     * @param WP_Comment $comment              The comment object.
     */
    $comment_author_email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
     
    if ( ( ! empty( $comment_author_email ) ) && ( '@' !== $comment_author_email ) ) {
        $display = ( '' !== $link_text ) ? $link_text : $comment_author_email;
     
        $comment_author_email_link = $before . sprintf(
            '<a href="%1$s">%2$s</a>',