payload = $payload; } /** * Send the logs to the api endpoint. * * @return object */ public function send() { wp_remote_post( $this->tracking_endpoint, array( 'method' => 'POST', 'body' => $this->payload, 'timeout' => 5, 'headers' => array(), ) ); } }