Categories
Notes WordPress

Talking to Other Sites with the WP HTTP API – Topher DeRosia

Topher DeRosia

Why Talk To Other Sites?

  • Ask them questions – Getting Data
  • Tell them things – Process Requests.

How is This Done?

  • GET – wp_remote_get()
  • POST – wp_remote_post()
  • HEAD – wp_remote_head()

Cache API Content

WordPress Sites (/wp-json) – pull public WordPress site data

By Tim Nolte

A Christ-follower, husband, father, and WordPress Developer with Forum One.