Recommended way to remove WP REST API returned data for custom post
While the docs state: Note that the API cannot prevent you from changing responses, but the code is structured to strongly discourage this. Internally, field registration is powered by filters, and these can be used if you absolutely have no other choice. there IS another choice for most cases, namely: custom endpoints/routes. You can even … Read more