gform_mailchimp_request_args

gform_mailchimp_request_args

DescriptionUsageParametersExamplesPlacementSource Code

Description
The 「gform_mailchimp_request_args」 filter in the Gravity Forms Mailchimp Add-On allows the request arguments to be modified before sent to Mailchimp.
Usage
add_filter( 'gform_mailchimp_request_args', 'your_function_name', 10, 2 );

Parameters

$args array
The request arguments sent to Mailchimp.

$path string
The request path.

Examples
add_filter( 'gform_mailchimp_request_args', 'change_request_args', 10, 2 );
function change_request_args( $args, $path ){
//change method
$args['method'] = 'POST';
return $args;
}

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GF_Mail_Chimp::process_request() in gravityformsmailchimp/includes/class-gf-mailchimp-api.php.

发表回复

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