The contact-form-7 wpcf7 validate configuration hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_validate_configuration',
WPCF7_VALIDATE_CONFIGURATION
);
$WPCF7_VALIDATE_CONFIGURATION
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)
The filter is defined in the following location(s).
contact-form-7/includes/functions.php
return apply_filters( 'wpcf7_validate_configuration',
WPCF7_VALIDATE_CONFIGURATION
);