is_email_address_unsafe

Filters whether an email address is unsafe.

Description

apply_filters( 'is_email_address_unsafe', (bool) $is_email_address_unsafe, (string) $user_email ); 

Parameters (2)

0. $is_email_address_unsafe (bool)
Whether the email address is unsafe.. Default false.
1. $user_email (string)
User email address.

Usage

To run the hook, copy the example below.
  1. $is_email_address_unsafe = apply_filters( 'is_email_address_unsafe', $is_email_address_unsafe, $user_email ); 
  2.  
  3. if ( !empty( $is_email_address_unsafe ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the is_email_address_unsafe callback 
  2. function filter_is_email_address_unsafe( $is_email_address_unsafe, $user_email ) { 
  3. // make filter magic happen here... 
  4. return $is_email_address_unsafe
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'is_email_address_unsafe', 'filter_is_email_address_unsafe', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'is_email_address_unsafe', 'filter_is_email_address_unsafe', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. return apply_filters( 'is_email_address_unsafe', $is_email_address_unsafe, $user_email );