wpcf7_contact_form_property_{$name}

The contact-form-7 wpcf7 contact form property {$name} hook.

Published Date - July 22, 2023

Description

$properties[$name] = apply_filters(
				"wpcf7_contact_form_property_{$name}",
				$val, $this
			);

Parameters

  1. $val

  2. $instance


Usage

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)

Defined

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