Plugin
PluginUpdated
WPCodeBox 2
WPCodeBox 2 is a WordPress plugin by WPCodeBox for adding and managing custom code snippets.
Product facts
- Version
- 1.4.1
- Released
- 5 October 2026
- Type
- Plugin
- Licence
- GPL
- Included in
- Every plan, or $4.19 / year on its own
Overview
Many WordPress sites collect small pieces of custom code over time, and these often end up in theme files or scattered across several places. Editing them usually means FTP access or a risky trip into a file editor. WPCodeBox 2 moves that work into one place in the dashboard, where each snippet can be written, edited, switched on or switched off on its own.
The editor highlights syntax and checks for errors, which helps catch mistakes before a snippet goes live. A library of reusable snippets gives you a starting point, and you can export and import your own to move them between sites. Snippets can also load only on certain pages or under set conditions, which keeps code limited to where it is needed.
Features
- No FTP required: Add and edit custom code straight from the WordPress dashboard, without FTP or access to server files. This keeps code changes within reach of users at any skill level.
- Code snippets library: Browse a collection of pre-built, reusable snippets and add common functionality to your site without writing everything from scratch.
- Syntax highlighting and error checking: The built-in editors highlight syntax and catch errors before deployment, which reduces the chance of a bad snippet causing bugs or downtime on your site.
- Switch snippets on or off: Activate or deactivate individual snippets at any time, so you decide exactly what runs on your site and can pull back a snippet that causes trouble.
- PHP, JavaScript, CSS and HTML: Manage several code types in a single place, so site customization does not require separate plugins or files for each language.
- Export and import snippets: Move your snippets between different sites or keep a backup of your work, which helps when you reuse the same customizations across projects.
- Conditional snippet loading: Apply a snippet only on specific pages or under certain conditions, so code runs where it is meant to and nowhere else.
- Manual and on-demand snippets: PHP snippets can be set to Manual (On Demand) and are marked with a small play badge in the editor sidebar and Snippet Manager.
Best for
- Beginners adding code without FTP access
- Developers organizing snippets across several client sites
- Agencies reusing the same customizations on multiple sites
Changelog
Version 1.4.1 — 22 September 2026
- Fixed Generated MCP configurations now use a stable server name based on each site's URL, including subsites and different ports. Setup prompts preserve other sites' connections and check for existing names before adding a server.
- Fixed MCP setup prompts now include the selected client's configuration and explain how to set up Claude Desktop when the assistant cannot access local files. Added JSON merge instructions and local credential guidance instead of promising automatic setup.
- Improved PHP snippets set to "Manual (On Demand)" now show a small play badge on their icon in the editor sidebar and Snippet Manager.
- Fixed Editing a snippet from the Snippet Manager now opens the requested snippet instead of restoring the previous selection, including when local and cloud lists finish loading in either order.
- Fixed Restored the public PHP API's execution-by-ID behavior for integrations such as WP All Import. `Api::runSnippet()` can again execute Function Editor snippets set to "Do not run", so import helper functions are available without changing existing snippets. The editor Run endpoint and MCP run tool continue to require "Manual (On Demand)" snippets.
- Fixed Local folder drag-and-drop order now saves when the drag ends, including drops onto titles or icons. Cloud folder IDs are excluded from local saves, the editor keeps its folder state synchronized, and failed saves show an error and reload the saved order.
- Fixed Fixed the Safe Mode link on the fatal-error screen.
- Fixed External-token execution now respects safe mode. Newly generated Functionality Plugins also use the improved recovery URL handling.
- Fixed Fatal errors in callbacks registered by snippets can now be attributed after the initial snippet execution has finished, so the responsible snippet is disabled on shutdown. Unrelated failures are not attributed to the last snippet that ran, and direct snippet errors retain their editor line numbers.
- Fixed MCP `wpcodebox_list_snippets` now includes every snippet in its flat `snippets` array, including snippets inside folders. The folder index remains available, and snippet `folderId` values are returned as integers.
- Fixed MCP calls now preserve actionable errors for missing snippets, permissions, invalid hooks and conditions, invalid folder names, and snippets that cannot be run on demand. Unexpected internal exception details remain hidden.
Earlier versions
- 1.3.0 (9 January 2025): 5 new, 8 improved, 6 fixed, 1 security
- 1.2.1: 4 fixed
- 1.2.0: 2 new, 2 improved, 8 fixed
FAQ
Is WPCodeBox 2 free?
The code of WPCodeBox 2 is licensed under the GPL, so anyone may use, change and share it. Buy GPL is a paid service: a plan or a purchase of WPCodeBox 2 gives you the download and its updates. The developer's own support, licence key and online services are not included.
Which version of WPCodeBox 2 is this?
Version 1.4.1, released 5 October 2026. New versions appear here when the developer publishes them.
How do I update WPCodeBox 2?
Install Buy GPL Updater on your site and paste your key from My Account. It installs new versions of WPCodeBox 2 for you.







