A WordPress-centric search engine for devs and theme authors



sanitize_email ›

Since2.8.0
Deprecatedn/a
apply_filters( 'sanitize_email', '', $email, 'email_too_short' )
Parameters: (3)
  • (string) $email The sanitized email address.
    Required: Yes
  • (string) $email The email address, as provided to sanitize_email().
    Required: Yes
  • (string) $message A message to pass to the user.
    Required: Yes
Defined at:
Codex:

Filters a sanitized email address.

This filter is evaluated under several contexts, including 'email_too_short', 'email_no_at', 'local_invalid_chars', 'domain_period_sequence', 'domain_period_limits', 'domain_no_periods', 'domain_no_valid_subs', or no context.





Source

return apply_filters( 'sanitize_email', '', $email, 'email_too_short' );