I am building a plugin for WordPress which will communicate with some remote REST API endpoints and display data in a list format in the public-facing view of WordPress.
Which method I should go for to call the API -
Making request form server using
A. I can give
hookto change the basic
B. I can use
transientto cache data.
A. It will be slower.
By making a direct call to the API server from the browser using
A. It will be much faster.
B. I can give a function to override to change the basic
A. Can't provide