FILED UNDER:

I Built a WordPress Plugin Twice: Once With My Wallet, Once With AI

Five years ago, when WordPress blocks first dropped, I had this wild idea: “What if the entire WordPress dashboard could be block-powered?”

So I paid someone to build it. Called it Mission Ctrl (because why not). It got a little traction. Even made a few sales. Then life happened, and it collected digital dust.

Fast Forward to 2024: Enter the AI Takeover

I got curious: Could Cursor + Claude rebuild this entire plugin for me?

Spoiler alert: HELL YES THEY COULD. And it’s actually amazing.

Here’s the kicker: I have literally no idea how it works. It just… does. So I asked Cursor to explain it to me like I’m five (okay, maybe like I’m a developer, but still).

The Magic Under the Hood

The Big Idea: Take the WordPress dashboard—that crusty old interface you see when you log in—and blow it up. Replace it with the same slick block editor you use for posts and pages. Want widgets? Drag ’em in. Want custom layouts? Go nuts.

The Secret Sauce (WordPress 6.0+ Features):

Block Editor Superpowers
Uses fancy React components with names like BlockEditorProvider, BlockList, and Inserter (sounds like a sci-fi weapon).

Modern Block Registration
Everything lives in a tidy block.json file instead of messy PHP. It’s the Marie Kondo of code.

REST API Magic
Custom endpoints that save your dashboard layouts and fetch widgets. It’s like having a personal butler for your dashboard data.

Server-Side Rendering
The “Dashboard Widget” block actually hijacks WordPress’s native widgets (the “At a Glance” stuff) and displays them right inside blocks. Sneaky!

WordPress Build Tools
Uses @wordpress/scripts which is basically WordPress saying “here’s all the complicated webpack stuff, pre-configured, you’re welcome.”

How It Actually Works (The Flow):

  1. Hijacks your dashboard → Redirects to the custom block editor
  2. Stores your layout → Saves it as serialized blocks in the database
  3. Renders everything → Uses WordPress’s own parsing/rendering functions
  4. Gives you the editor → Full React-powered block editor, just like the Site Editor
  5. Custom widget block → Wraps native WordPress widgets in block clothing

Why This Is Actually Cool

WordPress 6.0+ made this possible with stabilized APIs and better tooling. Basically, I took the technology powering Full Site Editing and just… pointed it at the dashboard instead.

The Result? A fully customizable dashboard that works like magic, built by an AI that apparently knows WordPress better than I do.

The future is weird, and I’m here for it. 🚀

https://playground.wordpress.net/?blueprint-url=https%3A%2F%2Fraw.githubusercontent.com%2FWeAreIconick%2FBlockDashboard%2Fmain%2Fblueprint.json