EmDash glossaryPlugin hooks are the events an EmDash plugin can respond to, such as content:afterSave. They run its code when content is saved, media is uploaded, or a page renders.
Hooks are how an EmDash plugin runs code when something happens: content is saved or published, media is uploaded, a comment comes in, a scheduled task fires, or a page is rendered. A plugin declares its hooks when it is defined, such as content:afterSave, and each handler receives the event and the plugin context.
What a hook can do with that context depends on the plugin's capabilities. Sandboxed and native plugins share the same hook names, but only native plugins can use page:fragments to inject scripts or HTML into public pages; sandboxed plugins can add metadata and JSON-LD through page:metadata.
Source: EmDash docs: Hooks.