smithery/dreamworks2050

wordpress-hook-generator

Generate WordPress actions and filters with proper naming conventions. Use when creating hooks for the login page or plugin functionality.

Installation

$ npx skills add smithery/dreamworks2050 --skill wordpress-hook-generator

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/dreamworks2050.

npx skills add smithery/dreamworks2050

Browse all from smithery/dreamworks2050

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,804 B
  • docs SUMMARY.md 170 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

WordPress Hook Generator

Instructions

When the user wants to add a WordPress hook:

  1. Determine hook type:

- Action (addaction): Performs an action, no return value - Filter (addfilter): Modifies data, must return a value

  1. Apply naming convention:

- Prefix: retrologin - Example: retrologinloginhead, retrologincustom_message

  1. Create callback function:

- Use namespace: Retrologin\ - Or use string callback: 'retrologin_callback'

  1. Register the hook:

- Actions: addaction('hookname', 'callback', priority, args) - Filters: addfilter('hookname', 'callback', priority, args)

Example

// Action: Enqueue assets on login page
add_action('login_enqueue_scripts', 'retrologin_enqueue_assets');

function retrologin_enqueue_assets(): void {
    wp_enqueue_style('retrologin-login', plugins_url('dist/assets/login.css', __FILE__));
}

// Filter: Change logo URL
add_filter('login_headerurl', 'retrologin_login_logo_url');

function retrologin_login_logo_url(): string {
    return home_url('/');
}

Common Login Hooks

Hook Type Purpose
loginenqueuescripts Action Enqueue CSS/JS
login_headerurl Filter Logo link URL
login_headertitle Filter Logo title text
login_message Filter Message above form
loginfootertext Filter Footer text
login_redirect Filter Redirect after login