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

apply_filters('pre_comment_author_email') is found 2 times:

  • /wp-includes/comment.php line 612
    		 * @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
    	$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;
    }