Filter hook 'is_email'

in WP Core File wp-includes/formatting.php at line 3625

View Source

is_email

Filter Hook
Description
return apply_filters( 'is_email', false, $email, 'local_invalid_chars' ); } /* DOMAIN PART Test for sequences of periods.

Hook Information

File Location wp-includes/formatting.php View on GitHub
Hook Type Filter
Line Number 3625

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into is_email
add_filter('is_email', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-includes/formatting.php:3625 - How this hook is used in WordPress core
<?php
3620  		}
3621  	}
3622  
3623  	// Congratulations, your email made it!
3624  	/** This filter is documented in wp-includes/formatting.php */
3625  	return apply_filters( 'is_email', $email, $email, null );
3626  }
3627  
3628  /**
3629   * Converts to ASCII from email subjects.
3630   *

PHP Documentation

<?php
/** This filter is documented in wp-includes/formatting.php */
		return apply_filters( 'is_email', false, $email, 'local_invalid_chars' );
	}

	/*
	 * DOMAIN PART
	 * Test for sequences of periods.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-includes/formatting.php
Related Hooks

Related hooks will be displayed here in future updates.