I'm developing a plugin for my Android app which uses WordPress rest API. I removed unwanted values from the response. Since it is not recommended to modify the response of end points, I need to clone them with new end points and remove the unwanted response from new end points

By doing this, default endpoints will be unchanged.

How can I do this? and also I need to authenticate my new end points with an API key.

1 Answer 1


There is nothing wrong if API returns more than what you need. Unless there is a security/privacy issue it is unlikely that the additional info will matter.

If you totally can not live with core's API, you need to just write your own. "cloning", "forking" or any other nice term you might want to use will end with you having to take full responsibility on the resulting code, therefor you might as well approach it from an "I am writing my own code" point of view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.