The WordPress REST API as a Springboard for Website Greatness

Post on 13-Apr-2017

2,022 views 1 download

transcript

The WordPress REST API as a Springboard for Website Greatness

Let’s think towards the future of WordPress

November 18th, 2015

#wprestapi

Ask Questions as We Go!

Please use the “Questions”pane throughout the webinar

#wprestapi

Quick Intros!

#wprestapi

Josh Pollock Owner/Developer, CalderaWP

❖ CalderaWP.com

❖ IngotHQ.com

❖ JoshPress.net

Anthony Burchell Operations Engineer, WP Engine

❖ Started on WordPress 2.8

❖ Casual Core Contributor

❖ antpb.com

What We’ll Discuss

❖ What is the REST API, and why should you care?

❖ Timeline on REST API in WordPress Core❖ Practical, useful and possibly wacky use cases

for the WordPress REST API (to get you thinking differently about what is possible)

#wprestapi

What is the WP REST API

A way to connect to WordPress using a standards-compliant RESTful API --

from within WordPress or from another application.

#wprestapi

Okay...SIMPLY what is the WP REST API?

Essentially, WordPress will be open to the internet of things!

#wprestapi

Why is the WordPress REST API Important

❖ Opens WordPress to the app world and allows app developers to use a CMS to manage their content. This could save many development hours

❖ This opens WordPress to any device or software. You can now integrate anything with WordPress

❖ The community has been given an arsenal of tools to make completely new applications on the WordPress platform #wprestapi

Why is the WordPress REST API Important (cont’d.)

We’re also opening things up to developers that are not WordPress savvy. This provides a nicer gate

of entry for non WordPress developers.

#wprestapi

Timeline for inclusion into WordPress Core

Infrastructure merged for 4.4Endpoints will be merged in 4.5

What does this mean?You will still need the WP REST API Plugin! Version to use now: WP REST API 2.0 Beta 6 If using v1.0: use the latest update (1.2.4)

before WordPress 4.4! http://wpeng.in/api-release/

#wprestapi

Let’s talk through some ideas

#wprestapi

Custom Front Ends

❖ Use WordPress only when you absolutely need it!

❖ Improve users experience (ttfb is drastically decreased)

❖ Use JavaScript MVC Frameworks❖ Improve conversions

#wprestapi

Web Component REST API Example

#wprestapi

Both Pages are calling for the same information (Post Title, Featured Image, Author Info, and Content of

Post)

HTML WordPress

Web Component REST API Example

#wprestapi

This simple use case proves a valid point: we can now use WordPress when we NEED to. If something isn’t dynamic, there’s no sense in

using WordPress to call database & load all dependencies on every load.

Web Component REST API Example

#wprestapi

https://github.com/Shelob9/web-component-rest-api-example

Custom Back Ends

❖ Quicker Plugin/Theme Development❖ Snappier admin experience❖ Potential for custom control panels

#wprestapi

Ingot Automatic A/B Tester

#wprestapi

WordPress Plugin Admin Made With AngularJS

Ingot Automatic A/B Tester

#wprestapi

http://bit.ly/1l68Tqt

What about the Internet of Things?

#wprestapi

The Internet of Things and WordPress

❖ If a device can make requests via the web, it can now interact with WordPress.

❖ Think of all the different sensors that you can hook through technologies such as Arduino. You can configure literally anything to communicate with WordPress.

#wprestapi

Go crazy with it!

#wprestapi

Resources

eBook: The Ultimate Guide to the WordPress REST APIhttp://wpeng.in/rest-api-ebook/

The WordPress API: An Untechnical Guide for Non-Developers

http://wpeng.in/untech/

#wprestapi

CalderaWPREST API CourseCalderaWP.com

Q&A

Feel free to ask away inthe “Questions” pane!

Are you an agency or freelancer?Learn how you can finish more sites in less time and enjoy unlimited staging installs for your WordPress projects for as little as $29 per month.

Ask about qualifying for a listing in our online consultants directory!

Call +1-512-827-3500, orChat with us wpengine.com

❖ Tips & tricks for higher project fees❖ How to find and sell $10K+ web

projects❖ High-level tools for building,

maintaining and supporting WP sites

Next

Setting the Foundation for a Super-Productive, Super-Profitable 2016

Increase project fees and profitability...but not your workload

Wednesday, December 9th, 12 pm EDT/ 11 am CDT/ 9 am EDT/ 5 pm GMT+1

Register Now! http://hs.wpengine.com/super-profitable-2016

Next Webinar