wpcf7_is_email

The Contact Form 7 wpcf7 is email function.

Description

wpcf7_is_email( $email ); 

Parameters (1)

0. $email
The email.

Usage

  1. if ( !function_exists( 'wpcf7_is_email' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/formatting.php'; 
  3.  
  4. // The email. 
  5. $email = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_is_email($email); 
  9.  

Defined (1)

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

/includes/formatting.php  
  1. function wpcf7_is_email( $email ) { 
  2. $result = is_email( $email ); 
  3. return apply_filters( 'wpcf7_is_email', $result, $email );