# Help Center hooks

> Actions and filters of the Help Center: access to articles, the knowledge base item of each article, feedback votes, search and docs-server events, page parts and the post type.

Source: https://www.wpbot.pro/help/dev-help-center-hooks/  
Section: Developers › Hooks  
Updated: 2026-11-26

The Help Center's hooks start with `qcld_wpbot_help_center/`. Most of them only run while the Help Center is turned on (**AI / Settings → Help Center → Turn on the Help Center**). Articles are the post type `wpbot_article`.

## Lifecycle

| Hook | Type | Parameters | What it is for |
| --- | --- | --- | --- |
| `qcld_wpbot_help_center/loaded` | action | `$module` | The module loaded |
| `qcld_wpbot_help_center/host_ready` | action | `$module` | The Help Center is on and ready; register your Help Center features here |
| `qcld_wpbot_help_center/enabled` | filter | `bool $on` | Override whether the Help Center is on |
| `qcld_wpbot_help_center/switched` | action | `bool $on` | The owner turned the Help Center on or off |

## Content and access

| Hook | Type | Parameters | What it is for |
| --- | --- | --- | --- |
| `qcld_wpbot_help_center/post_type_args` | filter | `array $args`, `string $base` | Arguments of the article post type |
| `qcld_wpbot_help_center/taxonomy_args` | filter | `array $args`, `string $base` | Arguments of the knowledge base, category and tag taxonomies |
| `qcld_wpbot_help_center/can_read` | filter | `bool $allowed`, `WP_Post $post`, `string[] $labels` | Whether the visitor may read a members-only article. Membership plugins answer here |
| `qcld_wpbot_help_center/kb_item` | filter | `array $item`, `WP_Post $post` | The chatbot knowledge item of an article before it is stored (`id`, `title`, `url`, `content`, `language`, `access`, `html`) |
| `qcld_wpbot_help_center/starter_categories` | filter | `array $cats`, `bool $shop` | Categories offered on the first-run screen (`slug => name`) |

## Feedback

| Hook | Type | Parameters | What it is for |
| --- | --- | --- | --- |
| `qcld_wpbot_help_center/voted` | action | `int $post_id`, `$value`, `$previous` | A visitor voted "Was this helpful?" |
| `qcld_wpbot_help_center/vote_reason` | action | `int $post_id`, `string $reason`, `string $comment` | A visitor gave a reason after a "no" vote |
| `qcld_wpbot_help_center/vote_reasons` | filter | `array $reasons` | The reasons offered after a "no" vote (`key => label`) |
| `qcld_wpbot_help_center/feedback_actions` | filter | `string[] $actions`, `WP_Post $post` | Buttons and links offered after a "no" vote, as HTML |
| `qcld_wpbot_help_center/viewed` | action | `int $post_id` | An article was viewed |

The follow-up to a "no" vote (its reason or comment), and every Help Center search that finds nothing, also fires the chatbot's `qcld_wpbot_chat/knowledge_gap`, so these questions appear in **ChatBot → Train** next to the chatbot's own.

## Search and AI assistants

| Hook | Type | Parameters | What it is for |
| --- | --- | --- | --- |
| `qcld_wpbot_help_center/searched` | action | `string $text`, `int $total` | Someone searched the Help Center |
| `qcld_wpbot_help_center/docs_searched` | action | `string $text`, `int $count` | An AI assistant searched through the public docs server |
| `qcld_wpbot_help_center/docs_read` | action | `int $post_id` | An AI assistant read an article through the public docs server |
| `qcld_wpbot_help_center/docs_rate` | filter | `int $requests` | Requests per visitor per 10 minutes on the docs server (default 120) |
| `qcld_wpbot_help_center/docs_site_rate` | filter | `int $requests` | Requests for the whole site per 10 minutes (default 3000) |
| `qcld_wpbot_help_center/docs_client_ip` | filter | `string $ip`, `string $remote` | The visitor address used for the docs server's limit |

See [Public docs server for your customers' AI assistants](/help/dev-public-docs-mcp-server/).

## Page parts

| Hook | Type | Parameters | What it is for |
| --- | --- | --- | --- |
| `qcld_wpbot_help_center/after_article` | action | `WP_Post $post` | Print something after an article, for example a call to action |
| `qcld_wpbot_help_center/before_results` | action | `string $query` | Print something above the search results |
| `qcld_wpbot_help_center/contact_cells` | filter | `string[] $cells` | Extra cells in the contact strip, as HTML (a ticket form, live chat) |

### Example: a call to action under every article

```
add_action( 'qcld_wpbot_help_center/after_article', function ( $post ) {
	echo '<p class="my-cta"><a href="/contact/">Still stuck? Talk to our team.</a></p>';
} );
```

To replace the whole page wrapper, see [Theme templates, CSS and Markdown copies](/help/dev-theme-templates-and-styling/).

## Availability

In every edition, including WPBot Free. The Help Center is off by default; turn it on in **AI / Settings → Help Center**.
