The contact-form-7 wpcf7 contact form property {$name} hook.
Published Date - July 22, 2023
$properties[$name] = apply_filters(
"wpcf7_contact_form_property_{$name}",
$val, $this
);
$val
$instance
The following example is for adding a hook callback.
// define the wpcf7_contact_form_property_{$name} callback
function custom_wpcf7_contact_form_property_name( $val, $instance ){
//custom code here
return $val
}
//add the action
add_filter('wpcf7_contact_form_property_{$name}', 'custom_wpcf7_contact_form_property_{$name}', 10, 2)
The filter is defined in the following location(s).
contact-form-7/includes/contact-form.php
$properties[$name] = apply_filters(
"wpcf7_contact_form_property_{$name}",
$val, $this
);