wordpress-plugin-to-emdash

Maps WordPress plugin concepts to EmDash CMS equivalents for TypeScript plugin porting.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/Thigh-Food/emdash --skill wordpress-plugin-to-emdash-thigh-food
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wordpress-plugin-to-emdash
Source: https://github.com/Thigh-Food/emdash/tree/main/skills/wordpress-plugin-to-emdash
Command: npx skills add https://github.com/Thigh-Food/emdash --skill wordpress-plugin-to-emdash-thigh-food

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Migrating a WordPress plugin to EmDash CMS requires translating dozens of WordPress-specific APIs (WP_Query, shortcodes, hooks, options, custom tables) into EmDash equivalents, and doing this by hand is error-prone and slow. ## Core Features & Use Cases - Concept Mapping Tables: Provides side-by-side mappings for content types, taxonomies, menus, widgets, admin UI, hooks, and plugin storage between WordPress and EmDash. - Porting Patterns: Includes code examples for converting shortcodes to Portable Text blocks, the Options API to plugin KV storage, custom database tables to storage collections, and WP_Query to collection queries. - Red Flag Detection: Identifies WordPress features without direct equivalents (multisite, cron jobs, direct SQL, capability checks) that need human architectural decisions. - Use Case: Given a WordPress contact form plugin using custom tables and shortcodes, produce an EmDash plugin descriptor, storage collection schema, Portable Text block, and Astro rendering component. ## Quick Start Port this WordPress plugin to EmDash by mapping its hooks, shortcodes, and database tables to EmDash equivalents.

Frequently Asked Questions about wordpress-plugin-to-emdash

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a WordPress plugin to EmDash CMS?

Analyze what the plugin does conceptually, map its WordPress APIs to EmDash equivalents using the concept tables, then reimplement in TypeScript using definePlugin(). Test for behavioral equivalence rather than doing a line-by-line port.

What replaces WordPress shortcodes in EmDash?

WordPress shortcodes become Portable Text custom block types in EmDash. Shortcode attributes become block fields declared in definePlugin(), and the render function becomes an Astro component. This is a trusted-plugin-only feature.

How do I convert WordPress custom database tables to EmDash?

Custom tables created with $wpdb become EmDash plugin storage collections. Declare the collection with indexes in definePlugin() and use ctx.storage with put, get, and query methods instead of raw SQL. No migrations are needed.

Does EmDash support WordPress hooks like save_post?

Yes, WordPress hooks map to EmDash plugin hooks. For example, save_post becomes content:afterSave, before_delete_post becomes content:beforeDelete, and init becomes plugin:install. Filter by event.collection to target specific content types.

What WordPress features cannot be ported to EmDash?

Multisite features, wp_schedule_event cron jobs, and deep WP core integrations have no direct EmDash equivalent. Direct SQL, complex meta queries, and user capability checks also need custom implementation or human architectural decisions.