gform_mailchimp_request_args

Description

The “gform_mailchimp_request_args” filter in the Gravity Forms Mailchimp Add-On allows the request arguments to be modified before being 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.