_options['use_ssl'] ) ? 'https' : 'http'; $url = $protocol . '://' . $this->_options['host'] . $this->_options['endpoint']; $response = wp_safe_remote_post( $url, [ 'timeout' => self::REQUEST_TIMEOUT, 'blocking' => false, 'body' => [ 'data' => $this->_encode( $batch ), ], ] ); return ! is_wp_error( $response ); } }