Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Marko Jakic

    (@markzero)

    Used rest_prepare_post filter

    And then in callback…

    public static function rest_prepare($data, $post, $request) {
          $data->data['content']['raw'] = $post->post_content;
          return $data;
    }
    Thread Starter Marko Jakic

    (@markzero)

    resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Raw content’ is closed to new replies.