From the course: First Look: WordPress Full-Site Editing

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Block basics

Block basics - WordPress Tutorial

From the course: First Look: WordPress Full-Site Editing

Start my 1-month free trial

Block basics

- [Instructor] Blocks are the heart of full site editing. In this lesson, I'd like to introduce you to the block API and look at the anatomy of a core block. As a WordPress developer, you know that WordPress provides multiple APIs for connecting to and extending core functionality. The block API gives plugins and themes a way to register their own blocks and extend the capabilities of the block editor. So let's pull back the curtain and see how this works. Here's a simple version of what's happening. You configure a block, you register it, then you can use that block. There's block editor output and finally, there's browser output. The block API provides detailed instructions for creating and registering a block. Let's start by taking a look at how a simple core block, the paragraph block, is configured. So, here we are in the WordPress repository on GitHub and let's drill down into the wp-includes folder, and from there…

Contents