wpcf7_do_doi

The contact-form-7 wpcf7 do doi hook.

Published Date - July 22, 2023

Description

$do_doi = apply_filters( 'wpcf7_do_doi',
		! $contact_form->is_false( 'doi' ),
		$agent_name,
		$args
	);

Parameters

  1. $!$contact_form_is_false

  2. $agent_name

  3. $args


Usage

The following example is for adding a hook callback.

// define the wpcf7_do_doi callback 
function custom_wpcf7_do_doi( $!$contact_form_is_false, $agent_name, $args ){ 
   //custom code here
    return $!$contact_form_is_false
} 

//add the action 
add_filter('wpcf7_do_doi', 'custom_wpcf7_do_doi', 10, 3)

Defined

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

contact-form-7/modules/doi-helper.php

$do_doi = apply_filters( 'wpcf7_do_doi',
		! $contact_form->is_false( 'doi' ),
		$agent_name,
		$args
	);