⌨️/hooks Command
Also known as /hooks, Hooks menu
It lists your hooks and where each one comes from.
Think of it like
It is like a list of the house alarms, and who set each one.
Example
A hook keeps formatting Emma's files, and she cannot find where it is set. /hooks shows it comes from a plugin, not her settings.
Why it matters
Hooks run on their own, so a strange one is hard to trace. This shows each one and its source.
Definition
Example code
console
/hooksCommon mistake
Key takeaways
- 1Read-only list. Every hook.
- 2Shows the source. Settings, plugin, session.
- 3Edit the file. To change one.