Advertisement
verygoodplugins

Untitled

Feb 10th, 2022
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.         $data['events'][] = array(
  2.             'email'   => $email_address,
  3.             'type'    => '$' . sanitize_title( $event ),
  4.             'details' => (object) array(
  5.                 $event => $event_data,
  6.             ),
  7.         );
  8.  
  9.         $request            = $this->url . '/batch/events/?site_uuid=' . wpf_get_option( 'site_uuid' );
  10.         $params             = $this->get_params();
  11.         $params['body']     = wp_json_encode( $data );
  12.         $params['blocking'] = false;
  13.  
  14.         $response = wp_safe_remote_post( $request, $params );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement