Skip to content

Instantly share code, notes, and snippets.

@skkim7821
Created November 24, 2017 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save skkim7821/9345c1d118a050c8e467132ec2553c40 to your computer and use it in GitHub Desktop.
Save skkim7821/9345c1d118a050c8e467132ec2553c40 to your computer and use it in GitHub Desktop.
remove _links for wordpress core
// page: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
// Wrap the data in a response object.
$response = rest_ensure_response( $data );
// here!!!!! 여기 주석처리 중요
// $response->add_links( $this->prepare_links( $post ) );
// here!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment