wpseek.com
A WordPress-centric search engine for devs and theme authors



sanitize_email › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'sanitize_email', '', $email, null )
Parameters: (3)
  • () sanitized_email The sanitized email address, or empty string.
    Required: Yes
  • () email The email address as provided to sanitize_email().
    Required: Yes
  • () context Validation context, or null for the initial call.
    Required: Yes
Defined at:
Codex:

Filters a sanitized email address.

Filters registered on this hook perform the actual validation and return the canonical email string on success or an empty string on failure. The default filter is registered in default-filters.php.




Source

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