Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data['events'][] = array(
- 'email' => $email_address,
- 'type' => '$' . sanitize_title( $event ),
- 'details' => (object) array(
- $event => $event_data,
- ),
- );
- $request = $this->url . '/batch/events/?site_uuid=' . wpf_get_option( 'site_uuid' );
- $params = $this->get_params();
- $params['body'] = wp_json_encode( $data );
- $params['blocking'] = false;
- $response = wp_safe_remote_post( $request, $params );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement