Wp Plugin Architecture

Designs and reviews the internal architecture of a WordPress plugin — `src/` folder layout, Composer PSR-4 one-class-per-file discipline, PascalCase filenames matching class names, no `class-*.php` legacy layout, Schema/Constants placement, composition-root vs singleton decisions, conditional asset enqueueing, script config via wp_add_inline_script, and prefixed custom-hook naming. Use when scaffolding `src/`, reviewing class organization, migrating from `includes/class-*.php`, checking composer.json namespace mappings, asset enqueue code, repeated strings, or "should I make this a singleton" decisions.

Lonsdale201 Updated

File contents

Lonsdale201/wp-agent-skills/tree/main/plugin-scaffold/wp-plugin-architecture commit 9a1352da99

Frequently asked questions

npx skillmds@latest add lonsdale201/wp-plugin-architecture