Filter hook 'is_email_address_unsafe'

in WP Core File wp-includes/ms-functions.php at line 437

View Source

is_email_address_unsafe

Filter Hook
Description
Filters whether an email address is unsafe.

Hook Information

File Location wp-includes/ms-functions.php View on GitHub
Hook Type Filter
Line Number 437

Hook Parameters

Type Name Description
bool $is_email_address_unsafe Whether the email address is "unsafe". Default false.
string $user_email User email address.

Usage Examples

Basic Usage
<?php
// Hook into is_email_address_unsafe
add_filter('is_email_address_unsafe', 'my_custom_filter', 10, 2);

function my_custom_filter($is_email_address_unsafe, $user_email) {
    // Your custom filtering logic here
    return $is_email_address_unsafe;
}

Source Code Context

wp-includes/ms-functions.php:437 - How this hook is used in WordPress core
<?php
 432  	 * @since 3.5.0
 433  	 *
 434  	 * @param bool   $is_email_address_unsafe Whether the email address is "unsafe". Default false.
 435  	 * @param string $user_email              User email address.
 436  	 */
 437  	return apply_filters( 'is_email_address_unsafe', $is_email_address_unsafe, $user_email );
 438  }
 439  
 440  /**
 441   * Sanitizes and validates data required for a user sign-up.
 442   *

PHP Documentation

<?php
/**
	 * Filters whether an email address is unsafe.
	 *
	 * @since 3.5.0
	 *
	 * @param bool   $is_email_address_unsafe Whether the email address is "unsafe". Default false.
	 * @param string $user_email              User email address.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/ms-functions.php
Related Hooks

Related hooks will be displayed here in future updates.