Monday, September 5, 2022
HomeWordPress Developmentcustomized discipline - The best way to add a submit's view rely...

customized discipline – The best way to add a submit’s view rely into the WordPress API response


That is my first time working with WordPress APIs, and i am not a PHP developer. Primarily our shopper simply needed us to show WordPress articles in our react-native app with easy information just like the:

  • date
  • title
  • content material
  • thumbnail
  • and so forth..

…something you’d discover within the default response, and this was straightforward. We merely used the default endpoints like this one: https://demo.com/wp-json/wp/v2/posts?classes=1015

In any case… Our shopper now desires to show the “view rely” of every article. Nonetheless, i can not discover that information within the default response:

enter image description here

Is there a solution to get this view rely information, and have it return within the API response, with out having to customise each single endpoint?

Thanks

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments