The contact-form-7 wpcf7 flamingo submit if hook.
Published Date - July 22, 2023
$cases = (array) apply_filters( 'wpcf7_flamingo_submit_if',
array( 'spam', 'mail_sent', 'mail_failed' )
);
$array
The following example is for adding a hook callback.
// define the wpcf7_flamingo_submit_if callback
function custom_wpcf7_flamingo_submit_if( $array ){
//custom code here
return $array
}
//add the action
add_filter('wpcf7_flamingo_submit_if', 'custom_wpcf7_flamingo_submit_if', 10, 1)
The filter is defined in the following location(s).
contact-form-7/modules/flamingo.php
$cases = (array) apply_filters( 'wpcf7_flamingo_submit_if',
array( 'spam', 'mail_sent', 'mail_failed' )
);