13
WORDPRESS REST API THE CASE FOR THE

WPCampus Online - The Case for the WordPress REST API

Embed Size (px)

Citation preview

Page 1: WPCampus Online - The Case for the WordPress REST API

WORDPRESS REST APITHE CASE FOR THE

Page 2: WPCampus Online - The Case for the WordPress REST API

ROY SIVANWHO AM I?

• Been using WordPress since the beginning

• Currently Working: The Walt Disney Company

• WPCrowd member - www.thewpcrowd.com

• RoySivan.com

• Github / Twitter / WPCrowd - @royboy789

Page 3: WPCampus Online - The Case for the WordPress REST API

WORDPRESS REST API?WHY DO WE EVEN NEED THE

Page 4: WPCampus Online - The Case for the WordPress REST API

THE ENDWE DON’T

Page 5: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

WHAT IS AN API?Definition: Application program interface (API) is a set of routines, protocols, and tools for building software applications.

YOU LOST ME AT “DEFINITION”An API lets you access, or create data.

WordPress Terms: The REST API lets you access, or create, WordPress content.

Page 6: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

WHY DO WE NEED THAT?

You still don’t.

Page 7: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

HOW DO YOU API?Leveraging the API isn’t that difficult once you get the hang of

JSON (JavaScript Object Notation)

Use JavaScript or PHP

Page 8: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

JSON

Page 9: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

SO I REALLY DO NEED TO LEARN JS DEEPLY?

Page 10: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

WHAT CAN YOU BUILD WITH IT?

Page 11: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

EXAMPLE USE CASE

•Phone App with calendar of events

•Widget for other websites which has event calendar

•Custom dashboard to allow others to create / edit events without wp-admin access

•If multiple websites, each a department, could combine to create 1 school-wide calendar

•Customized UI / App which easily toggles between types of events (categories)

Case: Website which is used to create events

Page 12: WPCampus Online - The Case for the WordPress REST API

THE CASE FOR THE WORDPRESS REST API

EXAMPLE USE CASE

•Showcase professor content on the department site, directly linking to their site.

•Widget on professor site to showcase content from other professors

•Showcases can use shared categories, so content is related, even not on same professor / sub-site.

Case: Multiple Sites under 1 main site (professors under dept.)

Page 13: WPCampus Online - The Case for the WordPress REST API

BUILDING SOMETHING COOL

THANK YOU! ANY QUESTIONS?Find me Online - @royboy789https://roysivan.com

The WP Crowdhttps://www.thewpcrowd.comhttps://www.thewpcrowd.com/author/roysivan/

Lynda - Tutorials & Courses Onlinehttps://lynda.com