Divine

Hooks

View as Markdown

This reference lists the public filters, actions, and PHP APIs Divine supports for site-specific code and integrations. It is generated from PHPDoc annotations in the app src/ tree; regenerate it with npm run docs:hooks after changing documented surfaces.

Reference Contents

Section Entries Categories
Public Filters 5 Performance (5)
Public Actions 3 Performance (1), Worktrees (2)

Public Filters

Hook Category Since Summary
divine/performance/default_config Performance 0.0.1 Filters the default Divine performance configuration.
divine/performance/theme_root Performance 0.0.1 Filters the active theme root used for Divine performance configuration.
divine/performance/raw_theme_config Performance 0.0.1 Filters raw theme performance configuration extracted from divine.json.
divine/performance/theme_config Performance 0.0.1 Filters validated theme performance configuration.
divine/performance/effective_config Performance 0.0.1 Filters the final effective Divine performance configuration.

Public Actions

Hook Category Since Summary
divine/performance/measurement_enabled Performance 0.0.1 Fires after Divine performance measurement has been enabled for a request.
divine/worktree/deployed Worktrees 0.0.1 Fires after a worktree has been deployed.
divine/worktree/destroyed Worktrees 0.0.1 Fires after a worktree has been destroyed.