Gutenberg &
Custom Applications
*
* this is not a paid product placement for Pantheon, but it should be - roy@roysivan.com
A tale of love, hate, betrayal, and
mighty comeback
And a case study.
*
Thank You
For being a friend
*
<!— wp:Roy Sivan —>
Senior Software Engineer
The Walt Disney Company
I don’t work at Pantheon, I’m a big fan.
<!— /wp:Roy Sivan —>
^ subtle foreshadowing
More about me
• First install of WP was a beta
• Consulting: arcctrl.com
• Find my courses on lynda.com
• Everywhere Important: @royboy789
Okay what?
WordPress
Gutenberg
Applications
Headless React
6
WordPress Gutenberg
Application Headless
That was the talk I gave! RIGHT HERE AT WCLAX
WORDPRESS AS AN APPLICATION FRAMEWORK
The Year: 2014
The Year: 2014
FAST FORWARD
How to effectively build apps powered by Gutenberg
Gutenberg & Custom Applications
The Year: 20 TODAY
Starting at the beginning
What is a Gutenberg?
This is The Gutes
It is coming… when it is ready.
@thegutes - Twitter
<data-rant state=“start”>
This is well
structured JSON
This is
Gutenberg
I bet this data looks
AMAZING
right?
NO
Hi Roy
But what about the data via REST API?
It must be an array of data, right?
nope
DB data
And thus
You can’t build apps with Gutenberg
Because the data is not structured and
we need to be 100% backwards compatible.
THANK YOU
www.arcctrl.com
@royboy789
So, what now?
Gutenberg Object Plugin
Shameless plug in.
github.com/royboy789/gutenberg-object-plugin/
https://dev-gutes-wclax.pantheonsite.io
TRY IT OUT
https://dev-gutes-wclax.pantheonsite.io/admin


SECURITY PEOPLE LOOK AWAY
TRY IT OUT
https://dev-gutes-wclax.pantheonsite.io/admin


user: WCLAX_Author

pass: gutes_wclax_author123!
Access via API
Add Gutenberg data
to regular API
endpoint return
/wp/v2/posts
/wp/v2/posts/:id
Allows you to get
only the Gutenberg
data
/gutes-db/v1/:id
PHP
Returns an array of the blocks and data
get_editor_blocks( $post_id );
Case Study
Airstream
a company known for their trailers/campers
LatLong - A Digital Agency
The Setup
WordPress
WooCommerce
Gutenberg
GraphQL
Headless React
32
WordPress Gutenberg
WooCommerce Headless
Why WordPress?
Why Headless?
Working with Gutenberg
Gutenberg & WooCommerce
The Power of React
Try it yourself!
github.com/royboy789/gutes-object-upstream
https://github.com/royboy789/gutes-object-upstream
CUSTOM UPSTREAM
Try it yourself!
THANK YOU AGAIN



QUESTIONS?
arcctrl.com 

@royboy789 - GitHub & Twitter

Gutenberg & Custom Applications powered by WordPress