Developer reference overview
On this page
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
Module folders, prefixes and REST namespaces are listed in Modules, hook prefixes, REST namespaces 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 onplugins_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 withcurrent_user_can()before you show WPBot data. See Permissions: who can see, use and change each tool. - 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.
How custom code fits the Growth Loop
The hooks follow the Growth Loop. A few examples:
- Create:
qcld_wpbot_writer/content_publishedfires when AI Writer publishes, so you can notify a team channel. - Convert:
qcld_wpbot_chat/lead_capturedhands every chatbot lead to your CRM. - Reach / Sell:
qcld_wpbot_marketing/contact_createdandqcld_wpbot_marketing/form_submittedfollow every new subscriber. - Learn:
qcld_wpbot_chat/knowledge_gapcollects 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.
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.
Was this article helpful?
Sorry about that. Get help another way:

