# wpdatatables/6.5.1.7/source/class.feedback.php

wpDataTables – WordPress Data Table, Dynamic Tables &amp; Table Charts Plugin, version 6.5.1.7. 20 lines.

- Page: https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/code/source/class.feedback.php
- Raw: https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/raw/source/class.feedback.php
- Modified: 2024-09-02T05:51:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpdatatables/6.5.1.7/code/source/class.feedback.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

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;
    }
}
```
