wpcf7_validate_configuration

The contact-form-7 wpcf7 validate configuration hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_validate_configuration',
		WPCF7_VALIDATE_CONFIGURATION
	);

Parameters

  1. $WPCF7_VALIDATE_CONFIGURATION


Usage

The following example is for adding a hook callback.

// define the wpcf7_validate_configuration callback 
function custom_wpcf7_validate_configuration( $WPCF7_VALIDATE_CONFIGURATION ){ 
   //custom code here
    return $WPCF7_VALIDATE_CONFIGURATION
} 

//add the action 
add_filter('wpcf7_validate_configuration', 'custom_wpcf7_validate_configuration', 10, 1)

Defined

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

contact-form-7/includes/functions.php

return apply_filters( 'wpcf7_validate_configuration',
		WPCF7_VALIDATE_CONFIGURATION
	);