# Control Panel Hooks

{% hint style="warning" %}
**Before using these hooks, check the Control Panel plugin is installed.**

The hooks will never run if it's not installed. Learn more here: [Checking for Dependencies](/1.0.0/dev/plugins/checking-for-dependencies.md)
{% endhint %}

| Action                             | Execution Time                                                          |
| ---------------------------------- | ----------------------------------------------------------------------- |
| ControlPanel.Start                 | Before the Control Panel's script execution.                            |
| ControlPanel.End                   | At the end of the Control Panel's script execution.                     |
| ControlPanel.DashboardContentStart | Before the dashboard's main content (just below the 'Dashboard' title). |
| ControlPanel.DashboardContentEnd   | After the dashboard's main content.                                     |
| ControlPanel.NewPageStart          | Before the new page screen's main content.                              |
| ControlPanel.NewPageEnd            | After the new page screen's main content.                               |
| ControlPanel.PluginListStart       | Before the plugin list (/panel/plugins).                                |
| ControlPanel.PluginListEnd         | After the plugin list (/panel/plugins).                                 |
| ControlPanel.PluginsPageStart      | Before the plugin page's main content (/panel/plugins/PLUGIN)           |
| ControlPanel.PluginsPageEnd        | After the plugin page's main content (/panel/plugins/PLUGIN)            |
| ControlPanel.UsersListStart        | Before the user list (/panel/users).                                    |
| ControlPanel.UsersListEnd          | After the user list (/panel/users).                                     |
| ControlPanel.UsersPageStart        | Before the user page's main content (/panel/users/USER)                 |
| ControlPanel.UsersPageEnd          | After the user page's main content (/panel/users/USER)                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.saturncms.net/1.0.0/plugins/official-plugins/control-panel/developer-guide/control-panel-hooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
