WP REST API

www.vegasgeek.com
John Hawkins

Used a “call center” as an example of using WP REST API to solve custom data problems with WordPress.

  • What problem does it solve?
  • The WP Rest API provides endpoints for data types taht allow devs to interact with sites remotely
  • Get
  • Post
  • Put
  • Delete

How would I solve issues?

  • shortcodes, used to hide code in a little bit of text
  • hook to init on a certain set of pages

Create a route

  • Pretty Permalinks
    • serve up json of all posts
  • Post endpoints
    • Such as latest ten posts
    • Anytime someone hits and end point… do something.
    • Allow WP to watch for data to hit a url
    • If it doesn’t recieve what it expects it will ignore it and move on.
  • Keep it simple to accomplish your goals with the data
  • Create a custom array of whatever you want
  • If you build custom features don’t tie it to a theme. Consider using a “core functions plugins
  • Chrome extension – JSON formatter – makes it human readable.
  • Postman – Testing your API
  • Learn More – https://developer.wordpress.org/rest-api

Readability Theme Progress

Now with WordCamp Santa Clarita behind me I’m focusing on my only resolution for 2019. Build a theme and submit it to the WordPress repository for consideration. A theme designed for casual long form reading where the user doesn’t have to lean towards their screen. A novel idea right?

There is still a lot to be done, code refactoring, feature implementation, refinements to the post editor experience. The list goes on.

I’m doing this as I feel there are not enough themes that take on the challenge of providing a comfortable reading experience while addressing the challenges of visual accessibility.

For an idea of what it’s looking like currently click through to this screenshot.

If you’d like to follow my progress I’m posting the code on Github. I’ll document my progress on this site as I go. 🙂