hooks-actions

Installation
SKILL.md

WordPress Action Hooks

When to use

  • The user wants to fire a custom extension point with do_action, or remove an action another plugin or the theme registered.
  • The user needs to enqueue CSS or JS by hooking wp_enqueue_scripts or admin_enqueue_scripts.
  • The user wants to run code when WordPress reaches a point such as init, wp_enqueue_scripts, or admin_menu.

When NOT to use

  • Do not use plain action hooks to run something on a schedule; use WP-Cron (wp_schedule_event) which then fires its own action.
  • Do not use an action when you must transform and return a value; use a filter (apply_filters/add_filter) instead.

Core guidance

Installs
1
GitHub Stars
3
First Seen
Jul 3, 2026
hooks-actions — anyorgname/php-skills