OG AI Code Core Explained

Jellybean, the OG Nexus mascot: OG AI Code Core Explained

OG AI Code Core is a WordPress code snippets plugin from OG Nexus. It lets you manage custom code in WordPress from the dashboard: each piece of PHP, JavaScript or CSS is a snippet with its own name, its own on and off switch and a setting for where it runs.

We use it on og-nexus.com, and the most useful thing we can tell you is how we use it now. At one point the site ran 35 snippets. On 30 November 2026 we cut that to three.

What our own clean-up taught us

Snippets are for trying things. A fix that has proved itself should move somewhere permanent. Ours moved into a small must-use plugin, and our styling snippets moved into the theme.

Old snippets pile up. 13 of the 35 no longer did anything, and we deleted them.

Two live versions of one snippet is a bug. We once had version 4 and version 5 of the same snippet switched on together, and its output showed twice. Switching the old one off fixed it in seconds, which is the point of having a switch.

The three that remain belong in a snippet.

What a snippet is

A snippet is a small piece of code with one job. OG AI Code Core handles three kinds:

PHP runs on the server and changes how WordPress behaves.

CSS controls colours, fonts, borders and spacing.

JavaScript runs in the browser, for example when someone clicks.

Without a tool like this, people paste code into the theme's functions.php file. A mistake there can break the site, and a theme update can wipe the change. A snippet lives outside the theme files, and you can switch it off on its own.

Add your first snippet

1

Open OG AI Code Core in the WordPress dashboard.

2

Create a new snippet and give it a clear name, such as "Checkout helper".

3

Choose the code type.

4

Paste or write the code, then save it.

5

Switch it on and test the website.

6

Switch it off if something does not work.

Test one change at a time and keep a backup. Do not paste code you do not understand: ask a developer you trust to check complicated PHP or JavaScript first.

What is new

Version 1.0.19, released on 2 December 2026, moved the Pro feature, PHP Code Blocks, into a separate Pro pack that is fetched when you save a valid Pro licence. OG AI Code Core needs PHP 8.1 or newer and WordPress 6.0 or newer. See the OG AI Code Core documentation for the latest features and compatibility details.