# Developer reference overview

> How WPBot is built, what you can use from your own code (shortcodes, blocks, hooks, REST, MCP, Abilities, JavaScript) and where each part is documented.

Source: https://www.wpbot.pro/help/developer-reference-overview/  
Section: Developers › Start here  
Updated: 2026-11-26

This knowledge base is for developers, agencies and site builders who want to place WPBot on pages, react to what it does, connect it to other systems or change its behaviour from a theme or a small plugin. Everything here is based on WPBot Pro **Master** 16.0.0.

Note

Only the shortcodes, blocks, hooks, routes and functions in this knowledge base are meant for your code. WPBot's admin screens also use many internal AJAX actions and REST routes; they change between releases and are not documented on purpose.

## How WPBot is built

WPBot Pro is one WordPress plugin made of **modules**. Each module lives in its own folder under `includes/` and talks to the others only through hooks. The same core modules ship in WPBot Free; Pro adds a Pro module next to each one.

| Layer | What it is | Examples |
| --- | --- | --- |
| **WPBot Core** | Shared services: AI client and keys, spending limits, background jobs, knowledge base, error log, notification emails, permissions | `includes/wpbot-core/` |
| **Core modules** | Each tool of the Growth Suite, the same in Free and Pro | ChatBot, AI Writer, SEO & AI Search, Social, AI Marketing, Site Insight, Help Center, asset cache |
| **Pro modules** | Extra features that plug into a core module | ChatBot Pro, AI Writer Pro, SEO & AI Search Pro, Social Pro, AI Marketing Pro, Site Insight Pro |
| **Add-ons** | Older feature packs switched on in the **Module Manager** | Conversational Forms, WooCommerce, Chat Sessions, Messenger, WhatsApp, Telegram, Voice Message, Support Tickets |

When several plugins bundle the same module (WPBot Free and WPBot Pro on one site), only the newest copy loads. WPBot Free stops running its own code as soon as WPBot Pro is active, so on a normal site only WPBot Pro answers. Your hooks therefore work the same whether the site runs Free, Pro or both.

## What you can use

| You want to | Use | Guide |
| --- | --- | --- |
| Put the chat, a chat button or a form on a page | Shortcodes | [Chatbot shortcodes](/help/dev-chatbot-shortcodes/), [Shortcodes of the Help Center, AI Marketing, Store and add-ons](/help/dev-module-shortcodes/) |
| Build pages in the block editor or Elementor | Blocks and Elementor widgets | [Blocks and Elementor widgets](/help/dev-blocks-and-elementor-widgets/) |
| React to events or change behaviour from PHP | Actions and filters | [WPBot Core hooks and functions](/help/dev-wpbot-core-hooks/), [ChatBot hooks](/help/dev-chatbot-hooks/), [Help Center hooks](/help/dev-help-center-hooks/), [AI Writer, SEO & AI Search and Social hooks](/help/dev-growth-suite-hooks/), [AI Marketing, Site Insight and asset cache hooks](/help/dev-marketing-insight-cache-hooks/) |
| Talk to WPBot from another system | REST routes | [REST API overview: which routes are for you](/help/dev-rest-api-overview/), [Chat REST API: send messages to the chatbot](/help/dev-chat-rest-api/) |
| Let AI assistants read or write your help articles | MCP servers | [Help Center MCP server: let AI assistants write your docs](/help/dev-help-center-mcp-server/), [Public docs server for your customers' AI assistants](/help/dev-public-docs-mcp-server/) |
| Let the WordPress MCP Adapter use WPBot | WordPress Abilities | [WordPress Abilities for the chatbot and the Help Center](/help/dev-wordpress-abilities/) |
| Open the chat from your own button or script | JavaScript | [JavaScript: open the chatbot from your own buttons and scripts](/help/dev-javascript-api/) |
| Change the Help Center page wrapper or style WPBot | Theme templates and CSS | [Theme templates, CSS and Markdown copies](/help/dev-theme-templates-and-styling/) |
| Show the chatbot on a site without WordPress | Embed code | [Embed the chatbot on another website](/help/dev-embed-chatbot-on-other-sites/) |
| Feed your own data to the chatbot | Knowledge base hooks | [Feed your own data to the chatbot's knowledge base](/help/dev-extend-the-knowledge-base/) |

Module folders, prefixes and REST namespaces are listed in [Modules, hook prefixes, REST namespaces and editions](/help/dev-modules-prefixes-and-editions/).

## Ground rules for custom code

- **Put your code in a small plugin or a child theme** , never in WPBot's files. Updates replace every file in the plugin folder.
- **Hook in late enough.**  WPBot Core loads on `plugins_loaded` (priority 1), the ChatBot module at priority 3 and the other modules after it. Add your hooks from your own plugin's main file or on `plugins_loaded`; they run whenever WPBot fires them.
- **Never read WPBot's database tables directly.**  Use the functions and hooks in this knowledge base. Table layouts change with migrations.
- **Keep secrets out of the browser.**  WPBot never sends API keys to the browser, never logs them and shows only the last 4 characters. Do the same in your code.
- **Respect permissions.**  WPBot's capabilities follow the pattern `wpbot_{section}_{view|use|publish|settings}`; check them with `current_user_can()` before you show WPBot data. See [Permissions: who can see, use and change each tool](/help/wpbot-permissions/).
- **Test with an AI spending limit set.**  Every AI call WPBot makes counts against the limits in **AI / Settings → Spending and limits** , including calls your hooks trigger. See [Set AI spending limits and alerts](/help/ai-spending-limits-and-alerts/).

## How custom code fits the Growth Loop

The hooks follow the [Growth Loop](/help/the-growth-loop/). A few examples:

- **Create:**  `qcld_wpbot_writer/content_published` fires when AI Writer publishes, so you can notify a team channel.
- **Convert:**  `qcld_wpbot_chat/lead_captured` hands every chatbot lead to your CRM.
- **Reach / Sell:**  `qcld_wpbot_marketing/contact_created` and `qcld_wpbot_marketing/form_submitted` follow every new subscriber.
- **Learn:**  `qcld_wpbot_chat/knowledge_gap` collects the questions nobody answered, the best input for your next article.
- **Business Context**  sits behind every AI feature; your code never needs to send it, WPBot adds it.

## Versions in WPBot Pro 16.0.0

| Module | Version |
| --- | --- |
| WPBot Core | 0.16.0 |
| ChatBot | 0.56.0 |
| ChatBot Pro | 0.47.11 |
| AI Writer / AI Writer Pro | 0.29.0 / 0.20.0 |
| SEO & AI Search / Pro | 1.4.0 / 1.4.0 |
| Social / Social Pro | 0.2.3 / 0.1.0 |
| AI Marketing / AI Marketing Pro | 2.0 |
| Site Insight / Site Insight Pro | 0.6.4 / 0.7.0 |
| Help Center | 0.19.1 |
| Asset cache / Pro | 0.7.5 / 0.7.2 |

What changed for customers is in [What's new in WPBot Pro 16.0.0](/help/ts-release-notes-wpbot-pro-16/).

## Availability

The hooks, REST routes, MCP servers and Abilities of the core modules are in every edition, including WPBot Free. Hooks of a Pro module exist only in the editions that include that module; each article lists them. WPBot Free does not include the chat shortcodes `[wpbot-page]`, `[chatbot-widget]`, `[wpbot-click-chat]` and the other chat-placement shortcodes: they are part of WPBot Pro. See [WPBot editions: Free, Starter, Professional and Master](/help/wpbot-editions/).
