I’m using is_email()
to check if a user-provided email address is valid. For example:
$email = $_POST['email'];
if ( is_email( $email ) )
// Do something.
To the best of my knowledge, nothing in this function writes info to the database. Should I be sanitizing $email
before I pass it to the function?