HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/wpdatatables/source/class.feedback.php
<?php

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly.
}


class WPDataTablesFeedback
{
    public static $wdt_api_feedback_url = 'https://wpreportbuilder.com/wp-json/wpreportbuilder/v1/form-submissions';

    public static function wdtSendFeedback($reason, $reason_caption)
    {
        $response = wp_remote_post(self::$wdt_api_feedback_url, [
            'body' => [
                'api_version' => get_option('wdtVersion'),
                'feedback_key' => $reason,
                'feedback' => $reason_caption,
            ],
        ]);

        return $response;
    }
}