wp-plugin-lifecycle
CommunityMaster WordPress plugin lifecycle events.
AuthorLonsdale201
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a guided approach to design and review WordPress plugin lifecycle events — activation, deactivation, and uninstall — including multisite patterns, safe data handling, and isolation of uninstall logic.
Core Features & Use Cases
- Activation patterns: one-shot setup, initial option seeds, and optional dbDelta migrations.
- Deactivation guidance: reversible cleanup, cron unscheduling via wp_unschedule_hook, and transient management to avoid stale state.
- Uninstall guidance: uninstall.php as an isolated cleanup path with multisite support and an optional data-preservation toggle.
- Multisite considerations: network-wide vs per-site activation/deactivation flows, site switching, and correct usage of WordPress uninstall patterns.
Quick Start
Implement activation, deactivation, and uninstall hooks in a plugin according to this guide to ensure robust lifecycle behavior.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wp-plugin-lifecycle Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#wp-plugin-lifecycle Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.