Created
November 24, 2017 06:23
-
-
Save skkim7821/9345c1d118a050c8e467132ec2553c40 to your computer and use it in GitHub Desktop.
remove _links for wordpress core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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