# supportcandy/2.3.1/includes/rest_api/class-rest-child.php

SupportCandy – AI Customer Support Ticket System &amp; Live Chatbot Agent, version 2.3.1. 21 lines.

- Page: https://pluginprobe.com/plugins/supportcandy/2.3.1/code/includes/rest_api/class-rest-child.php
- Raw: https://pluginprobe.com/plugins/supportcandy/2.3.1/raw/includes/rest_api/class-rest-child.php
- Modified: 2022-07-21T08:20:56+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/supportcandy/2.3.1/code/includes/rest_api/class-rest-child.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
  exit; // Exit if accessed directly
}

if ( ! class_exists( 'WPSC_Rest_Child' ) ) :
  
  final class WPSC_Rest_Child extends WP_REST_Request {
    
      /**
       * Set rest post data
       */
      public function setApiParams($postdata){
        
          $this->params['GET'] = $postdata;
        
      }
    
  }
  
endif;
```
