[wp-hackers] Apostrophes and is_email() alternative

Thomas Scholz info at toscho.de
Thu Oct 3 11:24:23 UTC 2013


> What is the accepted method to check email validity (for use as WordPress
> user accounts)?
>
> Is there a good reason not to use FILTER_VALIDATE_EMAIL ?

No, there is no good reason. You can extend the internal checker with  
filter_var().

See this plugin for an example:
https://gist.github.com/toscho/972837

Thomas


More information about the wp-hackers mailing list