wpcf7_is_email

The contact-form-7 wpcf7 is email hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_is_email', $result, $text );

Parameters

  1. $result

  2. $text


Usage

The following example is for adding a hook callback.

// define the wpcf7_is_email callback 
function custom_wpcf7_is_email( $result, $text ){ 
   //custom code here
    return $result
} 

//add the action 
add_filter('wpcf7_is_email', 'custom_wpcf7_is_email', 10, 2)

Defined

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

contact-form-7/includes/validation-functions.php

return apply_filters( 'wpcf7_is_email', $result, $text );