wordpress-patterns

Provides WordPress code examples for CPTs, taxonomies, meta boxes, REST endpoints, and more.

1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/iwritec0de/wp-dev --skill wordpress-patterns-iwritec0de
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wordpress-patterns
Source: https://github.com/iwritec0de/wp-dev/tree/main/skills/wordpress-patterns
Command: npx skills add https://github.com/iwritec0de/wp-dev --skill wordpress-patterns-iwritec0de

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Streamline WordPress development by providing ready-to-use patterns for common tasks such as custom post types, taxonomies, meta boxes, REST API endpoints, Settings API, and scheduling.

Core Features & Use Cases

  • Custom Post Types and Taxonomies: define and register content types and classifications with proper labels and REST exposure.
  • Meta Boxes and Settings: create admin interfaces and settings with validated fields and storage in options or post meta.
  • REST Endpoints and Enqueue Patterns: scaffold public endpoints and assets loading patterns, including front-end and editor scripts.
  • Gutenberg Patterns and Blocks: reference patterns for block development and integration with Gutenberg.

Quick Start

Provide a standard WordPress pattern set in your project by registering CPTs, taxonomies, meta boxes, REST endpoints, and enqueue patterns.

Frequently Asked Questions about wordpress-patterns

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

FAQPage Schema
How do I register custom post types and taxonomies in WordPress with REST API support?

Registering custom post types and taxonomies in WordPress requires PHP patterns that define content types, apply proper labels, and enable REST exposure for block and plugin development workflows.

What is the standard pattern for adding meta boxes and settings fields in WordPress?

The standard pattern for adding meta boxes and settings fields in WordPress uses the Settings API to create admin interfaces with validated fields, storing data in either options or post meta.

How do I create custom WordPress REST API endpoints and enqueue scripts?

Creating custom WordPress REST API endpoints and enqueueing scripts involves scaffolding public REST routes and loading assets, including specific patterns for front-end and editor scripts.

Can I use these WordPress development patterns for Gutenberg block creation?

Yes, these WordPress development patterns apply to Gutenberg block creation by providing references for block development and integration with the editor alongside custom post type and taxonomy scaffolding.

What's the best way to schedule cron tasks and transients in WordPress plugins?

The best way to schedule cron tasks and transients in WordPress plugins is using reusable PHP code blocks that define scheduling patterns and temporary data storage for optimized development workflows.