<action>

The Gravity Forms action hook.

Description

do_action( '<action>', (unknown) $args_0, (unknown) $args_1, (unknown) $args_2, (unknown) $args_3, (unknown) $args_4, (unknown) $args_5, (unknown) $args_6, (unknown) $args_7, (unknown) $args_8, (unknown) $args_9 ); 

Parameters (10)

0. $args_0 (unknown)
The args 0.
1. $args_1 (unknown)
The args 1.
2. $args_2 (unknown)
The args 2.
3. $args_3 (unknown)
The args 3.
4. $args_4 (unknown)
The args 4.
5. $args_5 (unknown)
The args 5.
6. $args_6 (unknown)
The args 6.
7. $args_7 (unknown)
The args 7.
8. $args_8 (unknown)
The args 8.
9. $args_9 (unknown)
The args 9.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( '{$action}', $args_0, $args_1, $args_2, $args_3, $args_4, $args_5, $args_6, $args_7, $args_8, $args_9 ); 
The following example is for adding a hook callback.
  1. // define the <action> callback 
  2. function action_action( $args_0, $args_1, $args_2, $args_3, $args_4, $args_5, $args_6, $args_7, $args_8, $args_9 ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "{$action}", 'action_action', 10, 10 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "{$action}", 'action_action', 10, 10 ); 

Defined (1)

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

/gravityforms.php  
  1. do_action( $action, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8], $args[9] );