Forked from skkim7821/class-wp-rest-posts-controller.php
Created
August 27, 2020 13:04
-
-
Save reslear/b18d470b65d32added3172cd39f48527 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