The block editor is now how WordPress content, templates and whole sites are built, so custom blocks have replaced shortcodes and many page-builder widgets. A good block gives editors exactly the controls they need and renders clean, fast HTML on the front end. This course covers professional block development: the editor side in React, the server side in PHP, and the newer APIs that connect blocks to data and add front-end interactivity.
What you'll learn
- How the block editor is built: packages, data stores, the block registry and block validation
- Scaffolding blocks with
@wordpress/create-blockand building them with@wordpress/scripts block.jsonmetadata: attributes, supports, assets, contexts and API version 3- Edit components with
InspectorControls,BlockControls,RichTextanduseBlockProps - Static versus dynamic blocks, server-side rendering in PHP and handling deprecations safely
- Nested layouts with
InnerBlocks, templates, allowed blocks and block locking - Block styles, variations, patterns and
theme.jsonsettings that editors actually use - Front-end interactivity with the Interactivity API and its directives
- Connecting block attributes to custom fields with the Block Bindings API
- Reading and saving data with
@wordpress/dataand@wordpress/core-data, and testing blocks
Who it's for
- WordPress developers moving from classic themes, ACF layouts or shortcodes to blocks
- React developers who need to build for WordPress clients
- Agencies creating editor-friendly custom blocks for client sites
Prerequisites
- Experience building WordPress themes or plugins in PHP (see WordPress Theme and Plugin Development)
- Comfortable with React components, props and hooks
- Node.js LTS and a local WordPress environment such as
wp-env, LocalWP or DDEV
Outcomes
By the end of this course you will be able to:
- Build, package and ship a plugin of custom blocks that pass block validation across updates.
- Choose between static, dynamic and interactive blocks for each use case.
- Give editors safe, constrained controls with patterns, variations and locking.
- Add front-end interactivity without loading a heavy JavaScript bundle.
Projects you'll build
- Marketing block library: hero, feature grid, testimonial and call-to-action blocks with styles, variations and patterns. It practises
block.json, editor controls andInnerBlocks. - Dynamic listings block: a block that queries custom post types with filters, rendered in PHP and cached. It practises dynamic rendering,
core-dataand server-side performance. - Interactive FAQ and tabs blocks: accessible accordions and tabs powered by the Interactivity API, with state shared between blocks. It practises directives, stores and accessibility.
Tools you'll use
WordPress 6.x or later, @wordpress/create-block, @wordpress/scripts, @wordpress/env, React as bundled with WordPress, PHP 8.2+, the Interactivity API, Playwright with the WordPress end-to-end utilities, and Query Monitor.
Course outline
| Module | Topic |
|---|---|
| 1 | Block editor architecture |
| 2 | Scaffolding and the build toolchain |
| 3 | block.json, attributes and supports |
| 4 | Edit components and editor controls |
| 5 | Save output, validation and deprecations |
| 6 | Dynamic blocks and PHP rendering |
| 7 | InnerBlocks, templates and locking |
| 8 | Styles, variations, patterns and theme.json |
| 9 | The Interactivity API |
| 10 | Block Bindings and custom fields |
| 11 | Data stores, testing and accessibility |
| 12 | Packaging, versioning and distribution |
FAQ
How is this different from WordPress Theme and Plugin Development?
That course covers PHP theme and plugin fundamentals across WordPress. This one focuses only on blocks and the JavaScript side of the editor, at an advanced level.
Do I need to know React well?
You need the basics. WordPress wraps React in its own packages, and we explain the WordPress-specific parts in detail.
Can blocks replace Elementor for clients?
For many sites, yes: block themes and custom blocks can produce lighter pages. We discuss the trade-offs, and Elementor Page Builder Websites covers the page-builder route.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.