gform_webapi_<endpoint>

The Gravity Forms gform webapi endpoint hook.

Description

do_action( 'gform_webapi_<endpoint>', (unknown) $id, (string) $format, (unknown) $args ); 

Parameters (3)

0. $id (unknown)
The id.
1. $format (string)
The format.
2. $args (unknown)
The args.

Usage

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

Defined (2)

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

/includes/webapi/webapi.php  
  1. do_action( 'gform_webapi_' . $endpoint, $id, $format, $args ); 
  1. do_action( 'gform_webapi_' . $endpoint, $id, $id2, $format, $args );