gform_icontact_request_args

Description

Filter the options array so that is modifiable before sending requests to iContact.

Usage

add_filter( 'gform_icontact_request_args', 'my_function', 10, 4 );

Parameters

  • $options array

    Query arguments to be sent in the request.

  • $action string

    The action being sent to the iContact API, passed in the URL.

  • $method string

    The request method being used. Example: GET.

  • $return_key string

    The array key desired from the response.

Examples

function my_function( $options, $action, $method, $return_key ) {
//Do something here
return $options;
}
add_filter( 'gform_icontact_request_args', 'my_function', 10, 4 );

Source Code

This action hook is located in class-icontact.php.