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-block and building them with @wordpress/scripts
  • block.json metadata: attributes, supports, assets, contexts and API version 3
  • Edit components with InspectorControls, BlockControls, RichText and useBlockProps
  • 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.json settings 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/data and @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:

  1. Build, package and ship a plugin of custom blocks that pass block validation across updates.
  2. Choose between static, dynamic and interactive blocks for each use case.
  3. Give editors safe, constrained controls with patterns, variations and locking.
  4. 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 and InnerBlocks.
  • Dynamic listings block: a block that queries custom post types with filters, rendered in PHP and cached. It practises dynamic rendering, core-data and 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

ModuleTopic
1Block editor architecture
2Scaffolding and the build toolchain
3block.json, attributes and supports
4Edit components and editor controls
5Save output, validation and deprecations
6Dynamic blocks and PHP rendering
7InnerBlocks, templates and locking
8Styles, variations, patterns and theme.json
9The Interactivity API
10Block Bindings and custom fields
11Data stores, testing and accessibility
12Packaging, 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.