Custom hooks can be added directly in the workspace; however, in many cases, a common hook is needed across all workspaces within an environment or across the entire account. This is where the hooks registry helps. After adding a hook to the registry, it can be applied to an environment, which then applies it to all workspaces in the environment.