File "REST_Response.php"

Full Path: /home/dcqnetm/intuns/wp-content/plugins/tutor/restapi/REST_Response.php
File size: 327 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/*
@Reliable for give rest response
@author : themeum
*/

namespace TUTOR;
use WP_REST_Response;

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

trait REST_Response {
	/*
		@send WP_REST_Response with 
		code, message along with data
	*/
	public static function send(array $response) {
		return new WP_REST_Response($response);
	} 
}