Skip to content

19 articles

Development (page 2)

Building on WordPress: custom blocks, headless front ends with Next.js, and automation.

Headless front ends, plugins and integrations, with the tests and release habits that keep them maintainable. The custom development and plugin pages describe the same work as an engagement.

Not covered yet: plugin dependency design, custom admin settings pages, and block editor accessibility.

  • A payment card module slides into a glowing socket on a modular checkout counter, with a matching socket lit on a second counter behind.Development

    8 min read

    WooCommerce payment gateways for the Checkout block: a working integration

    A WooCommerce payment gateway Checkout block integration needs a PHP payment method type and a JavaScript payment method registration. Your existing WC_Payment_Gateway can still process the payment, but the block will not list it until both sides are registered with the same gateway ID.

    • WooCommerce
    • Plugins
    • Payment Gateway
    Read article
  • A printed toggle switch lifts off a paper card and becomes a real glowing switch between a reader's fingers, small sparks around it.Development

    7 min read

    The WordPress Interactivity API: add front-end behavior to a custom block

    The WordPress Interactivity API gives custom blocks a standard way to connect front-end HTML to state and JavaScript actions. Since WordPress 6.5, you can declare an interactive block in block.json, add directives to server-rendered markup, and load behavior through a script module.

    • WordPress
    • Gutenberg Blocks
    • JavaScript
    Read article
  • A robot puppeteer works a tiny shop page on strings, picking a shoe, filling a form and pressing checkout while cameras record each move.Development

    7 min read

    End-to-end WordPress Playwright testing for editor, admin and checkout

    WordPress Playwright testing lets a browser verify the editor, wp-admin, and checkout paths that a release depends on. Run those flows against wp-env, reuse a saved admin session, keep test data fixed, and save traces and screenshots when CI fails.

    • WordPress
    • Testing
    • JavaScript
    Read article
  • Miniature builders add a new room to a lit, lived-in model house on scaffolding, the extension glowing on the blueprint below.Development

    5 min read

    WordPress plugin database migrations with dbDelta, done safely

    WordPress plugin database migrations should compare a stored schema version with the version your plugin expects, then run only the missing steps. Use dbDelta() for table creation and supported schema changes, and use explicit, guarded migrations for destructive or unsupported changes.

    • WordPress
    • Plugins
    • Database
    Read article
  • Single gears each spinning on their own small test stand with a green light, on a watchmaker's bench beside tweezers and a loupe.Development

    7 min read

    WordPress plugin unit testing with wp-env and PHPUnit

    WordPress plugin unit testing stays repeatable when pure PHP tests stay small and WordPress integration tests run in a wp-env environment. Set up wp-env, bootstrap the WordPress PHPUnit files through WP_TESTS_DIR, write tests with WP_UnitTestCase, then run the same command in GitHub Actions.

    • WordPress
    • Plugins
    • PHP
    Read article
  • Colour-coded glass jars on a shelf, each linked by glowing tubes only to the jars it needs, forming a tidy web of dependencies.Development

    7 min read

    WordPress Script Modules: load ES modules the WordPress way

    WordPress Script Modules are the core API for registering and loading front-end ES modules with named dependencies. Since WordPress 6.5, you can let WordPress build the import map, preload static module dependencies, and print the module entry point in the right order.

    • WordPress
    • JavaScript
    • Performance
    Read article
  • A brass key console feeds one punched card into a big machine that sorts thousands of small glowing pieces into bins in batches.Development

    6 min read

    How to write a custom WP-CLI command for your plugin

    A WP CLI custom command belongs in your plugin when a maintenance or data task needs a repeatable command-line interface. Register a command class only when WP-CLI is running, describe its arguments in PHPDoc, then add dry-run handling, bounded batches, machine-readable output and exit codes.

    • WP-CLI
    • WordPress
    • Plugins
    Read article
  • One glowing content library feeds three front ends by beams of light: a printing press, a mobile kiosk and a small storefront.Development

    6 min read

    Headless WordPress examples and architectural patterns

    Practical headless WordPress examples divide the platform into two separate systems: WordPress acting solely as a structured content repository, and an external frontend framework rendering the user interface.

    • Headless WordPress
    • REST API
    • WPGraphQL
    Read article
  • A friendly robot helper sorts one stack of paperwork at a shop counter while the shopkeeper's hand keeps the approval stamp and cash drawer.Development

    4 min read

    AI automation for small businesses: where to start

    AI automation for small businesses is most useful when it handles a repeatable step that someone can check. Start with one workflow, such as sorting incoming enquiries or drafting a reply for review. Decide who owns the result, how mistakes will be caught and what happens when a connection fails.

    • Automation
    • Web Development
    • Small Business
    Read article