WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\Schedulers

MailchimpScheduler::make_request() public WC 1.0

Make an HTTP request to the API.

{} It's a method of the class: MailchimpScheduler{}

No Hooks.

Return

Mixed.

Usage

$MailchimpScheduler = new MailchimpScheduler();
$MailchimpScheduler->make_request( $store_email );
$store_email(string) (required)
Email address to subscribe.

Code of MailchimpScheduler::make_request() WC 6.1.0

public function make_request( $store_email ) {
	if ( 'development' === constant( 'WP_ENVIRONMENT_TYPE' ) ) {
		$subscribe_endpoint = self::SUBSCRIBE_ENDPOINT_DEV;
	} else {
		$subscribe_endpoint = self::SUBSCRIBE_ENDPOINT;
	}

	return wp_remote_post(
		$subscribe_endpoint,
		array(
			'method' => 'POST',
			'body'   => array(
				'email' => $store_email,
			),
		)
	);
}