gform_webapi_ENDPOINT

gform_webapi_ENDPOINT

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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注