How do you add custom fields defined in posts to the rest API responses in wordpress

前端 未结 4 1093
不知归路
不知归路 2020-12-08 17:28

I want to do this without using any sort of plugin since these are both core wordpress features (custom fields and the REST API). Here is the documentation for custom fields

4条回答
  •  不知归路
    2020-12-08 18:30

    Just add it in your CMS and then it should be available inside your WP REST API.

提交回复
热议问题