Retrieving remote data
Fetching data from other servers (e.g., fetching information from external APIs or resources) can be a relatively slow process, and issues relating to timeouts can occur. Remote calls such as wp_remote_get()
, wp_safe_remote_get()
and wp_oembed_get()
should rely on the WordPress HTTP API (not cURL) and should be cached.