Where to put code that customizes API


I am building a native mobile app where I need to display categories of products in different screens, and my client uses WordPress as their CMS. I see that in order to return images from a gallery, I will need to use get_post_galleries() or get_post_gallery() per the instructions here:

How to get the attached gallery in the rest API?

My question is, to which file do I add the custom endpoints? So far my CMS is very bare bones so for the purposes of this question, you can assume I only have the files included with a new WordPress installation.

, , HeidiWF 4 years 2020-03-05T23:50:51-05:00 0 Answers 117 views 0

Leave an answer