I am building a plugin for WordPress which will communicate with some 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 –
A. I can give
hookto change the basic
B. I can use
transientto cache data.
A. It will be slower.
A. It will be much faster.
B. I can give a function to override to change the basic
A. Can’t provide
Read more here: Plugin development – What method to use to call a REST API?