mcorbett51090/ravenclaude/extend-with-hooks-and-plugins
Claude Code and agent skill by mcorbett51090/ravenclaude
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Extend WordPress through actions and filters at the right hook and priority, register custom post types/taxonomies and REST routes, and query with WP_Query (or a $wpdb->prepare'd query) — keeping logic in a plugin, never editing core.
Install
npx vskill@latest install mcorbett51090/ravenclaude/extend-with-hooks-and-pluginsSKILL.md
The same SKILL.md was published earlier as mcorbett51090/ravenclaude/extend-with-hooks-and-plugins.
Extend with Hooks and Plugins
Change behavior by hooking in, not by forking.
Hooks & filters
- Actions (
add_action) do something at a point; filters (add_filter) transform a value and must return it. - Pick the right hook and priority — earlier/later priority and
$accepted_argsmatter. Confirm the hook's contract (when it fires, what it passes). - Put hooks in a plugin (or a child theme for presentation), never in core or a parent theme — see `../../best-practices/never-edit-core-use-child-themes-and-hooks.md`.
Registering things
- CPTs / taxonomies:
register_post_type/register_taxonomyoninit— these are data, so they belong in a plugin, not the theme (`../../best-practices/keep-business-logic-in-plugins-not-themes.md`). - REST routes:
register_rest_routewith apermission_callbackand sanitizedargs— never an open mutating endpoint.
Querying
- `WP_Query` / `get_posts` / the meta & options APIs first. Bound results (no reflexive
posts_per_page = -1); avoid N+1 on meta. - Drop to `$wpdb` only when the high-level API can't express it — and `prepare()` always (`../../best-practices/use-wpdb-prepare-never-concatenate.md`).
Security on actions
- Every form/AJAX/REST mutation: nonce + capability check (`../../best-practices/nonce-and-capability-checks-on-actions.md`) and sanitize-in/escape-out (`../../best-practices/sanitize-input-escape-output.md`).
Anti-patterns
- A filter callback that forgets to
return $value. - Editing a plugin's source instead of hooking its provided actions/filters.
- A custom post type registered in the theme (disappears on theme swap).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/wordpress-cms-engineering/skills/extend-with-hooks-and-plugins/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 1
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mcorbett51090/ravenclaude/extend-with-hooks-and-plugins)