wpcf7_flamingo_submit_if

The contact-form-7 wpcf7 flamingo submit if hook.

Published Date - July 22, 2023

Description

$cases = (array) apply_filters( 'wpcf7_flamingo_submit_if',
		array( 'spam', 'mail_sent', 'mail_failed' )
	);

Parameters

  1. $array


Usage

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)

Defined

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' )
	);