Description
WPCodeBox 2 – Code Snippets With Cloud Support centralizes the execution of custom PHP, CSS, SCSS, and JavaScript code snippets with cloud synchronization and intelligent auto-complete. This structure allows you to test scripts with real-time reloading and apply specific loading conditions directly in the dashboard, eliminating the need for manual editing of the functions.php file for those who develop or customize multiple WordPress client projects.
Key Features of WPCodeBox 2 – Code Snippets With Cloud Support
- Private cloud repository
Stores and synchronizes code snippets between different sites directly from the dashboard. - Editor with auto-complete
Suggests native WordPress functions and classes while typing in the integrated editor. - Conditional loading rules
Executes scripts only on specific pages, posts, post types, or URLs configured. - Integrated SCSS compilation
Automatically converts SCSS files to pure CSS without relying on external compilers. - CSS reload without refresh
Applies style changes instantly on the screen without reloading the entire page.
Benefits of WPCodeBox 2 – Code Snippets With Cloud Support
- Reuse of recurring functions
Eliminates the need to rewrite common scripts for each new project built. - Protection against fatal errors
Stops the execution of defective scripts before the site goes down. - Centralized code maintenance
Replaces heavy plugins with small snippets executed with greater control in the system. - Agility in daily development
Reduces testing time with style updates reflected in real time.
Who is WPCodeBox 2 – Code Snippets With Cloud Support for?
- Those who create and manage dozens of sites for clients and need to share standardized codes between them.
- You who often add customizations to the functions.php file and want to avoid accidental theme breaks.
- Those who prefer to keep PHP functions, CSS rules, and JS automations organized in a single panel with quick search.
How to Download WPCodeBox 2 – Code Snippets With Cloud Support
WPCodeBox 2 – Code Snippets With Cloud Support is available for download here on Ultrapack. After downloading the .zip file, access Plugins > Add New > Upload plugin in the WordPress dashboard, upload it, and activate. The snippet manager is immediately accessible in the administrative menu.
By structuring the script library in the cloud, the plugin organizes PHP functions, CSS stylizations, and frontend scripts with granular loading. This approach eliminates the need for child themes for small customizations and accelerates the workflow of developers and agencies that maintain multiple simultaneous projects in WordPress, ensuring pinpoint control over where each snippet should run.
Frequently asked questions
Is WPCodeBox 2 – Code Snippets With Cloud Support GPL-licensed?
Yes. WPCodeBox 2 – Code Snippets With Cloud Support is distributed under the GPL (GNU General Public License). You may legally use, modify and redistribute it on as many sites as you want.
Can I use WPCodeBox 2 – Code Snippets With Cloud Support on multiple sites?
Yes. You can install WPCodeBox 2 – Code Snippets With Cloud Support on as many sites as you want. Only automatic updates through Ultrapack Auto Updater have a limit: from 3 to 80 sites, depending on the plan.
How much does WPCodeBox 2 – Code Snippets With Cloud Support cost at Ultrapack?
WPCodeBox 2 – Code Snippets With Cloud Support costs US$2.99 as a single purchase, and it is also included in the subscription plans starting at US$12/mo (VIP I).
Does WPCodeBox 2 – Code Snippets With Cloud Support include updates?
Yes. The current version of WPCodeBox 2 – Code Snippets With Cloud Support is 1.4.1, published at Ultrapack on Sep 28, 2026. Subscribers update straight from the WordPress dashboard with UAU (Ultrapack Auto Updater).
Is WPCodeBox 2 – Code Snippets With Cloud Support scanned before publication?
Yes. Every version of WPCodeBox 2 – Code Snippets With Cloud Support goes through a malware scan (ClamAV and YARA rules, at UltraHub) before it is published.
What are the requirements for the plugin WPCodeBox 2 – Code Snippets With Cloud Support?
Requires WordPress 5.6 or higher and PHP 7.4 or higher. Tested up to WordPress 7.1.
What changed in this version
Version 1.4.1
- Fix: 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.
- Fix: 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.
- Improvement: PHP snippets set to "Manual (On Demand)" now show a small play badge on their icon in the editor sidebar and Snippet Manager.
- Fix: 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.
- Fix: 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.
- Fix: 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.
- Fix: Fixed the Safe Mode link on the fatal-error screen.
- Fix: External-token execution now respects safe mode. Newly generated Functionality Plugins also use the improved recovery URL handling.
- Fix: 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.
- Fix: 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.
- Fix: 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.
Version 1.4.0
- New Feature: Snippet Manager — a dedicated library view for browsing, searching, filtering, organizing, and bulk-managing snippets. Switch between it and the classic editor from the toolbar; the selected view is remembered across reloads. A read-only Cloud section lists cloud folders and snippets with one-click download to local.
- New Feature: Tags — assign tags to snippets, search and filter by tag or "Untagged", customize tag colors per browser, and edit tags from either the Snippet Manager or EditSnippet sidebar.
- New Feature: Bulk and drag-and-drop workflows — select all/none or multiple snippets with a live selection count, then move, tag, enable, disable, or delete them together. Cards can be moved to folders or manually reordered with optimistic UI updates; `/` focuses search and `Esc` clears selection.
- New Feature: More ways to find snippets — sort by Manual order, Name, or Last modified in both manager and classic sidebar; filter by type, tag, enabled/disabled/errored status, and whether conditions are set. Errored cards show a warning badge and error tooltip. Search is debounced and case-insensitive across snippet fields and tags.
- New Feature: Duplicate snippets in the Snippet Manager — copy code, placement, conditions, and tags into the same folder as a disabled "Copy of …" snippet.
- Improvement: With Manual sort active, All Snippets and Cloud All group cards by folder and show loose snippets under "No folder". Cards now show last-modified timestamps, open in the editor on double-click, and use the styled app dialog for delete confirmation.
- Improvement: Snippet Manager icons, filters, dark-mode borders, and the upward-opening Move picker now match the rest of the editor. Folder moves/reorders update instantly, a duplicate-load guard prevents runaway reloads, and plugin-page CSS loads early to prevent the white-line/unstyled-content flash.
- New Feature: MCP / AI Access — connect compatible AI clients to list, search, and read snippets, folders, tags, and revisions, and explicitly opt in to create, update, enable/disable, run, or delete operations. Read tools are the default when MCP is enabled; write and execute tools remain off until an administrator enables them. The standalone MCP endpoint accepts Application Password authentication only, requires `manage_options`, applies the per-tool allowlist and input validation, rate-limits calls, and audit-logs every request.
- New Feature: MCP snippet placement and conditions — create/update tools accept validated `hooks` and condition-builder groups. Agents can select the named UI insertion points or raw actions, use multiple placements for JS/CSS/HTML, and configure editable Location, URL, content, taxonomy, user, device, time, and weekday rules; Custom PHP conditions remain unavailable to agents.
- New Feature: WordPress Abilities API support — all 14 tools are registered under the `wpcodebox` category on WordPress 6.9+, with `readonly` and `destructive` annotations and core `wp-abilities/v1` discovery/execution routes. Both surfaces share the tool catalog, per-tool allowlist, input validation, `manage_options` capability check, and audit log. Unlike the standalone MCP endpoint, core Abilities REST also permits nonce-protected cookie authentication as well as Application Passwords and does not use WPCodeBox's MCP rate limiter. Disabled tools return a clear administrator-enable message.
- Fix: Abilities registered for WordPress 6.9+ now carry MCP channel metadata, so AI clients connecting through core's ability-based MCP adapters see exactly the tools an administrator enabled instead of every registered ability. The execution-time allowlist check still gates each call.
- Improvement: MCP settings provide ready-to-copy Claude Desktop, Cursor/VS Code, and Claude Code configurations, plus higher-contrast dark-mode styling, a write-tool warning, and bulk enable/disable controls.
- Fix: MCP tool names now use Anthropic-compatible underscores such as `wpcodebox_list_snippets`; saved allowlists using the former slash names are recognized and migrated. Reported by a customer in June 2026.
- Fix: The MCP endpoint responds at `plugins_loaded` so canonical/multilanguage plugins cannot redirect the request before the client receives it.
- Fix: Missing or quarantined MCP tool files are skipped instead of taking WordPress into recovery mode, and each skipped tool is logged once per occurrence until restored. Reported by RC testers on Cloudways.
- Improvement: The MCP run tool and in-app Run button now use one canonical one-shot PHP execution path. It strips only a leading PHP open tag, preserves embedded `
- New Feature: Runtime PHP error detection — hook-time fatal errors are caught, attributed, recorded, and disable the affected snippet without white-screening the site. Exceptions are recorded but leave the snippet enabled, while shutdown handling attributes otherwise uncatchable fatal errors to the executing snippet. This replaces WordPress recovery-mode emails for caught snippet errors with an in-app error state.
- Improvement: Repeated identical snippet exceptions no longer rewrite the snippet row or duplicate the PHP error-log entry on every occurrence; a changed message or editor line is still recorded immediately.
- Fix: Runtime error line numbers now point to the matching editor line for named hooks, external triggers, snippets without an opening tag, and snippets with leading blank lines.
- Fix: External-trigger PHP snippets that end in HTML mode now generate parseable wrappers in both normal and Functionality Plugin execution.
- Fix: Failed saves now show a "The snippet was NOT saved" toast. Incomplete/truncated save requests and null database updates are rejected instead of blanking a snippet, and empty revisions cannot be reverted over working code. Previously stored revisions remain available for recovery.
- Improvement: Saves upload only fields the server needs instead of revision history and previous run output, avoiding multi-megabyte requests for large snippets.
- Fix: Functionality Plugin generation and ordering — tokenizer-based HTML-mode detection no longer mistakes `?>` inside strings for a real close tag, Snippet Order is honored on every sync, and equal order/placement/priority ties fall back to creation order. Reported by Jean-Marc Czudek.
- Perf: Functionality Plugin bulk generation now reorders its include list once after all snippets are written instead of rereading and rewriting it after every snippet.
- Fix: Functionality Plugin Gutenberg CSS now evaluates its URL correctly; Gutenberg JavaScript runs; snippets also run in the Full Site Editor iframe; each editor stylesheet has a unique handle; and generated inline CSS/JS is escaped.
- Improvement: The Functionality Plugin settings dialog now uses the same sectioned layout, status toggle, and dark-mode styling as the MCP settings modal. Body text is legible in dark mode, the download button's icon no longer wraps onto its own line, and the duplicate-snippet-names warning is a proper alert listing the affected snippets instead of faint grey text.
- Fix: A failed Functionality Plugin enable/disable no longer leaves its dialog stuck on "Working…", and a failed download now reports the failure instead of throwing while reading the server's response.
- Fix: External JavaScript and CSS snippets now run at every selected insertion point in runtime and Functionality Plugin output, including special-hook remapping and each hook's selected priority.
- Fix: Generated Global CSS ` ` tags no longer include the obsolete `type="text/css"` attribute; JavaScript output remains unchanged.
- Fix: CSS minification now shortens repeated-pair hex colors correctly (`#ffffff` to `#fff`, not `#ff`) and handles the full hexadecimal range. Reported by a customer after 1.3.1.
- Fix: Folder exports include their snippets and serialize folder IDs as numbers; folder imports create snippets in their destination in one request and refresh once at the end. Reported by Jason Janes @ RoatanYP.com.
- Fix: Sidebar folder drops keep the in-memory list synchronized, and updating a downloaded cloud snippet refreshes and displays its placement hooks correctly.
- Fix: Revision and AI execution timestamps use the WordPress timezone, locale, and DST-aware `wp_date` formatting. Reported by Jayron Castro @ Kstros.com.
- Fix: WordPress and other plugins' admin JavaScript no longer breaks on the WPCodeBox page. The code editor loads as an AMD bundle whose loader installs a global `define`, and WordPress' own scripts registered themselves with it instead of publishing the globals everything else expects — and because WordPress serves several of those scripts concatenated into a single file, the first collision aborted the rest of that file too. That left `wp.element`, `moment`, and `jQuery.hoverIntent` undefined, which broke the admin bar's hover menus and any plugin building on WordPress' React packages, Secure Custom Fields among them. The editor now initializes after WordPress has finished running its own scripts and releases the AMD marker once it is up, while keeping the loader available for the syntax-highlighting files it fetches on demand. Long-standing rather than new in 1.4.0, and only ever affected the WPCodeBox admin page.
- Internal: Added tag and bulk snippet REST endpoints plus optional `folderId` creation, Jest coverage for exports/search and the editor loader guard, and shared sorting/tag-color helpers between the manager and editor.
- Note for hosts/security tooling: if your malware scanner flags WPCodeBox's MCP files, whitelist `wp-content/plugins/wpcodebox2/src/Mcp/`.
Version 1.3.1
- New Feature: Added optional capability for the AI model to execute code to retrieve the current WordPress context
- New Feature: Added support for up-to-date Gemini models
- New Feature: Added OpenRouter model integrations
- New Feature: Addded custom model option
- New Feature: Added an option to hide both panels using Ctrl + ~
- New Feature: Added a configurable setting for the number of revisions to save
- Fix: SCSS minification issues
- Fix: CSS minification incorrectly altering colors in some cases
- Fix: SCSS/CSS formatting replacing single quotes with double quotes
Version 1.3.0
- New Feature: WPCodey AI Chat Integration (BYOK)
- New Feature: AI inline code modifications and generation
- New Feature: Nested CSS handling in the editor
- New Feature: Buttons to collapse the side panels
- New Feature: Added a clear search button
- Improvement: Improved plugin UI
- Improvement: Improved variable handling in the editor
- Improvement: Added revert revision button
- Improvement: Changed editor class names to avoid conflicts
- Improvement: Search also works in the snippet description
- Improvement: Open folders only if there are search results, and close them after
- Improvement: Various UI/UX improvements
- Bugfix: Saving on Safari only works the first time, then it throws an error
- Bugfix: CSS minifier incorrectly handles double quotes
- Bugfix: Formatting breaks when SCSS code contains comments
- Bugfix: Export file is empty when exporting a single snippet from a folder
- Bugfix: Removed unused JS libraries
- Bugfix: Deprecation warnings for latest PHP versions
- Housekeeping: Updated JS libraries to the latest versions
- Housekeeping: Started migrating the legacy code to modern React
Version 1.2.1
- Bugfix: Bug when external CSS is rendered in the Functionality Plugin
- Bugfix: Missing collation from the revisions table causing issues in some cases
- Bugfix: Screen Options button sometimes appearis in the UI
- Bugfix: UI disappears in edge case when the Functionality Plugin is enabled
Release notes published by the developer.
How to install
Automatic updates: this item is updated by the Ultrapack Auto Updater. With it installed, the new version shows up in your dashboard like any other WordPress update (how to set it up).
- Download the file
wpcodebox2.zip. - In the WordPress dashboard, go to Plugins > Add New > Upload Plugin.
- Select the file
wpcodebox2.zipand click Install Now. - Click Activate.
Requirements: Requires WordPress 5.6 or higher and PHP 7.4 or higher. Tested up to WordPress 7.1.
Stuck on a step? Open a ticket telling us which one you stopped at.

UAU Ready