The contact-form-7 wpcf7 do doi hook.
Published Date - July 22, 2023
$do_doi = apply_filters( 'wpcf7_do_doi',
! $contact_form->is_false( 'doi' ),
$agent_name,
$args
);
$!$contact_form_is_false
$agent_name
$args
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)
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
);