10up-plugin-development

Build WordPress plugins using the 10up architecture pattern with PSR-4 autoloading.

87|32|Updated Jul 3, 2015
One-click install
npx skills add https://github.com/petenelson/wp-rest-api-log --skill 10up-plugin-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 10up-plugin-development
Source: https://github.com/petenelson/wp-rest-api-log/tree/main/.claude/skills/10up-plugin-development
Command: npx skills add https://github.com/petenelson/wp-rest-api-log --skill 10up-plugin-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create WordPress plugins following 10up architecture patterns. Covers plugin structure, the 10up PHP framework module system, hooks, settings API, and security. Use when building new plugins or refactoring existing ones.

Core Features & Use Cases

  • Modular design, with features implemented as separate modules following 10up patterns.
  • Auto-loading and PSR-4 namespace structure via src/ directory.
  • Settings API, admin pages, and REST endpoints to extend WordPress.
  • Use case: when starting a new plugin or refactoring an existing plugin to a scalable architecture.

Quick Start

Create a new WordPress plugin using the 10up scaffold and organize code under src/, with modules auto-loaded on plugins_loaded.

Frequently Asked Questions about 10up-plugin-development

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

FAQPage Schema
How do I build a WordPress plugin using a modular architecture?

To build a modular WordPress plugin, use a main entry point and a src/ directory featuring PSR-4 autoloading. This structure initializes separate modules on the plugins_loaded hook, ensuring scalable feature isolation.

What is the 10up architecture pattern for WordPress plugins?

The 10up architecture pattern is a modular framework for WordPress plugins that organizes code into a src/ directory with PSR-4 autoloading. It separates features into distinct modules and utilizes composer.json for dependency management.

How do I refactor an existing WordPress plugin to use PSR-4 autoloading?

Refactoring a WordPress plugin to PSR-4 autoloading involves restructuring code into a modular src/ directory and adding a composer.json file. This migration applies the 10up architecture pattern to scale existing features.

Can I create custom REST endpoints and settings pages with this framework?

Yes, you can implement settings pages, admin interfaces, and REST endpoints using this WordPress plugin framework. These modular features are integrated as separate components within the src/ directory following 10up patterns.

Do I need composer.json to set up a WordPress plugin with 10up architecture?

Yes, a composer.json file is required to initialize modules and configure PSR-4 autoloading for the src/ directory. This setup ensures the 10up architecture pattern properly maps namespaces for your WordPress plugin.

When should I use a modular plugin architecture instead of standard WordPress development?

Use a modular plugin architecture when starting a new WordPress plugin or refactoring an existing one to handle scalable, complex features. This approach prevents code entanglement by isolating settings, REST endpoints, and hooks into separate modules.