wp-plugin-rewrite-rules

Community

Master WP rewrite flows safely.

AuthorLonsdale201
Version1.0.0
Installs0

System Documentation

What problem does it solve?

WordPress plugin authors often mishandle rewrite rules and flush calls, leading to 404s, poor performance, and confusing debugging scenarios. This guide clarifies when to register rewrites, how to flush, and how to structure endpoints to keep permalinks predictable.

Core Features & Use Cases

  • Guidance on add_rewrite_rule, add_rewrite_endpoint, and query_vars for custom endpoints, CPTs, and taxonomies.
  • Activation-time flushing pattern that ensures rewrites are in place before first requests.
  • Clear best practices and common mistakes to avoid, with real-world WordPress plugin scenarios.

Quick Start

Register a new rewrite rule on init for a custom endpoint and flush rules only during plugin activation.

Dependency Matrix

Required Modules

None required

Components

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-rewrite-rules
Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#wp-plugin-rewrite-rules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.