10up-wp-framework

Initialize WordPress plugin modules via PSR-4 autoloading and ModuleInterface.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The 10up WordPress Framework addresses the challenge of building scalable, maintainable WordPress plugins and themes by providing a modular architecture, standardized module lifecycle, and automatic class discovery that reduces boilerplate.

Core Features & Use Cases

  • ModuleInterface and Module trait provide a standard contract and lifecycle for features.
  • ModuleInitialization auto-discovers modules under src using PSR-4 autoloading for consistent bootstrapping.
  • GetAssetInfo trait and asset management examples streamline asset loading.
  • Auto-discovery and separation of concerns enable scalable WP projects.

Quick Start

Install the framework via Composer and start auto-discovering modules from src to bootstrap your WP plugin or theme.

Frequently Asked Questions about 10up-wp-framework

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

FAQPage Schema
How do I structure a large WordPress plugin to avoid initialization boilerplate?▼

A modular WordPress framework solves this by providing a standard module lifecycle and auto-discovering classes under src using PSR-4 autoloading. This ensures predictable bootstrapping and clean separation of concerns for scalable plugin development.

What is the best way to auto-load WordPress modules from a src directory?▼

The best way to auto-load WordPress modules is using a framework that implements ModuleInitialization with PSR-4 autoloading. This automatically discovers and bootstraps modules under the src directory, ensuring consistent initialization without manual registration.

Does this WordPress framework require Composer for plugin module setup?▼

Yes, this WordPress framework requires Composer for setup. You install the modular framework via Composer to start auto-discovering modules from your src directory and bootstrap your WordPress plugin or theme with standardized lifecycle management.

How do I manage asset loading in a modular WordPress theme?▼

You manage asset loading in a modular WordPress theme using the GetAssetInfo trait. This framework provides asset management examples and asset-guided development workflows to streamline how stylesheets and scripts are loaded across isolated modules.

Can I use a standardized interface for WordPress module lifecycle management?▼

Yes, you can use a standardized interface for WordPress module lifecycle management. The framework provides a ModuleInterface and Module trait that define a standard contract, ensuring predictable initialization and separation of concerns across features.