DescriptionUsageParametersExamplesSource Code
Description
Triggered when a particular Gravity Forms Web API endpoint is accessed.
Usage
1add_action( 'gform_webapi_get_forms', 'my_function', 10, 4 );
Parameters
$id string
The ID of the element obtained. For example, the form ID if accessing a form.
$id2 string
Only defined if a secondary ID is defined in the request; such as getting a specific field, within a specific entry.
$format string
The format that the data is returned it. By default, returns json.
$args array
Arguments that were used within the request such as the offset, page size, and schema.
Examples
1234function my_function() { //Do something here}add_action( 'gform_webapi_get_forms', 'my_function', 10, 4 );
Source Code
This action hook is located in webapi.php