Using the WordPress Data Layer

This course aims to get you comfortable with the WordPress data layer. It’s a JavaScript library used throughout the WordPress editor to read and write data. Whenever you save a post, insert a page list block, or select the post author – it’s all powered by the WordPress data layer.

The data layer is famous for its steep learning curve. In reality, it’s not that hard. There just weren’t many learning resources out there, so you had to learn everything directly from the code. Well, not anymore. This course provides a step-by-step introduction to all the data layer concepts. It is the resource I wish I had when I was starting.

You will learn by building a small React app to manage WordPress pages. You’ll start by setting up your development environment, learn to read data by populating the list of pages, and finally learn to update, delete, and create new data entries by adding features to the application. Here’s what the final result will look like:

Enjoy!

Setting up your development environment Retrieving WordPress data records Editing WordPress data records Creating new WordPress data records Deleting WordPress data records Conclusion

You may also review the finished app in the gutenberg-examples repository.

Enrolled learners 1048
Average final grade 99%
Last updated Aug 1st, 2024

Suggestions

Found a typo, grammar error or outdated screenshot? Contact us.