🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 13:35:32 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
plugins
/
image-optimization
/
modules
/
reviews
/
classes
📍 /home/eliteewa/public_html/wp-content/plugins/image-optimization/modules/reviews/classes
🔄 Refresh
✏️
Editing: feedback-handler.php
Writable
<?php namespace ImageOptimization\Modules\Reviews\Classes; use Exception; use ImageOptimization\Classes\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Feedback_Handler * * Class to post feedback */ class Feedback_Handler { const SERVICE_ENDPOINT = 'feedback/reviews'; /** * Send request to the service to submit the feedback. * * @param $params * * @return string * @throws Exception */ public static function post_feedback( $params ) { $response = Utils::get_api_client()->make_request( 'POST', self::SERVICE_ENDPOINT, $params ); if ( empty( $response ) || is_wp_error( $response ) ) { throw new Exception( 'Failed to add the feedback.' ); } return $response; } }
💾 Save Changes
❌ Cancel