gform_update_<property_name>

The Gravity Forms gform update property name hook.

Description

do_action( 'gform_update_<property_name>', (unknown) $lead_id, (unknown) $property_value, (unknown) $previous_value ); 

Parameters (3)

0. $lead_id (unknown)
The lead id.
1. $property_value (unknown)
The property value.
2. $previous_value (unknown)
The previous value.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gform_update_{$property_name}', $lead_id, $property_value, $previous_value ); 
The following example is for adding a hook callback.
  1. // define the gform_update_<property_name> callback 
  2. function action_gform_update_property_name( $lead_id, $property_value, $previous_value ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "gform_update_{$property_name}", 'action_gform_update_property_name', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "gform_update_{$property_name}", 'action_gform_update_property_name', 10, 3 ); 

Defined (1)

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

/forms_model.php  
  1. do_action( "gform_update_{$property_name}", $lead_id, $property_value, $previous_value );