{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Hooks","description":"Developer documentation for the WHMCS API — the","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"hooks","__idx":0},"children":["Hooks"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Registrar modules can also define hook functions."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hooks allow you to integrate with events and actions that occur inside WHMCS."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hooks for your registrar module should be defined in a file named ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hooks.php"]}," within your registrar module directory.  These hooks will then be auto-detected and loaded throughout WHMCS."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The hook functions within that file should be defined in exactly the same way as normal."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Please refer to Hook Documentation for more info on creating and working with hooks in WHMCS."]}]},"headings":[{"value":"Hooks","id":"hooks","depth":1}],"frontmatter":{"title":"Hooks","seo":{"title":"Hooks"}},"lastModified":"2026-08-03T17:00:42.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/domain-registrars/hooks","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}