| Server IP : 82.64.35.208 / Your IP : 192.168.65.1 Web Server : Apache/2.4.68 (Debian) System : Linux 079bc81edf51 6.12.76-linuxkit #1 SMP Tue Jul 21 14:38:37 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/custom-twitter-feeds/inc/Admin/ |
Upload File : |
<?php
/**
* Class CTF_Response
*
* Sends back ajax response to client end
*
* @since 2.0
*/
namespace TwitterFeed\Admin;
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
class CTF_Response {
/**
* Response constructor.
*
* @param $is_success
* @param $data
*
* @throws \Exception
*/
public function __construct( $is_success, $data ) {
$is_success ? wp_send_json_success( $data ) : wp_send_json_error( $data );
wp_die();
}
}