OG AI Code Core¶
A snippets manager that does not stop at snippets. It runs your PHP and JavaScript where and when you want, and any function you write can also become an AI tool, a workflow step or a REST endpoint.
Requires: WordPress 6.0+, PHP 8.1+. OG AI Core is optional but unlocks the AI features.
Install¶
Download the zip from My Account > Your Nexus Products (the Downloads view), upload it in Plugins > Add New > Upload Plugin and activate. Open OG AI Code Core under AI in the OG AI Core menu. Without OG AI Core the same menu is labelled OG Apps.
Snippet scopes¶
Each snippet runs only where it belongs:
| Scope | Runs |
|---|---|
| Persistent | Everywhere (front end and admin). Your usual "add this to functions.php" code, but managed. |
| Frontend | Only on the public site. |
| Backend | Only in the admin. |
| Function | A named, callable function with typed arguments. The reusable building block. |
| Scheduled | On a WP-Cron schedule, at the hour and minute you choose. |
| Content (PHP / JS) | Inside one post or page, with a block or the [og-aicodecore] shortcode (Pro). |
Snippets are searchable, taggable and sortable by priority, and you can import and export them. The editor has syntax highlighting; press Cmd/Ctrl+S to save and Cmd/Ctrl+Enter to run.
Safe Mode¶
If a snippet throws a fatal error it is caught and disabled automatically, so one bad snippet does not take the site down.
Let AI write it¶
With OG AI Core active, describe what you want in plain English. Code Core generates the code, a name, a description, the arguments and the scope. You can also ask the AI to change existing code, or write comments and have it fill in the implementation.
Write once, use everywhere¶
When you save a Function snippet it becomes available in three places:
- As an AI tool. Your OG AI Core chatbots and external MCP clients can call it with real arguments. Ask "how many orders shipped today?" and the chatbot runs your function.
- As a workflow step. Each active function appears as its own block in the workflow step picker, with one input per argument.
- As a REST endpoint. Give it a bearer token and trigger it from Make, n8n, Zapier, a cron job or a webhook.
Tips¶
- Give each function argument a clear name and description. The AI uses them to decide when and how to call it.
- Start new snippets switched off, test them with Run, then switch them on.
- Keep secrets out of snippets. Use WordPress options or constants instead.