Descrição
O WPCodeBox 2 – Code Snippets With Cloud Support centraliza a execução de trechos personalizados de código PHP, CSS, SCSS e JavaScript com sincronização em nuvem e auto-complete inteligente. Essa estrutura permite testar scripts com recarregamento em tempo real e aplicar condições específicas de carregamento diretamente no painel, dispensando a edição manual do arquivo functions.php para quem desenvolve ou customiza múltiplos projetos WordPress de clientes.
Principais Características do WPCodeBox 2 – Code Snippets With Cloud Support
- Repositório privado na nuvem
Armazena e sincroniza trechos de código entre diferentes sites pelo próprio painel. - Editor com auto-complete
Sugere funções nativas do WordPress e classes durante a digitação no editor integrado. - Regras de carregamento condicional
Executa scripts apenas em páginas, posts, tipos de post ou URLs específicas configuradas. - Compilação integrada de SCSS
Converte arquivos SCSS em CSS puro automaticamente sem depender de compiladores externos. - Recarregamento de CSS sem refresh
Aplica alterações de estilo instantaneamente na tela sem recarregar a página inteira.
Benefícios do WPCodeBox 2 – Code Snippets With Cloud Support
- Reaproveitamento de funções recorrentes
Elimina a necessidade de reescrever scripts comuns a cada novo projeto construído. - Segurança contra erros fatais
Interrompe a execução de scripts defeituosos antes que o site saia do ar. - Manutenção de código centralizada
Substitui plugins pesados por pequenos trechos executados com maior controle no sistema. - Agilidade no desenvolvimento diário
Reduz o tempo de testes com atualizações de estilo refletidas em tempo real.
Para Quem o WPCodeBox 2 – Code Snippets With Cloud Support é Indicado?
- Quem cria e gerencia dezenas de sites para clientes e precisa compartilhar códigos padronizados entre eles.
- Você que costuma adicionar customizações no arquivo functions.php e quer evitar quebras acidentais do tema.
- Quem prefere manter funções PHP, regras de CSS e automações JS organizadas em um painel único com busca rápida.
Como Baixar o WPCodeBox 2 – Code Snippets With Cloud Support
O WPCodeBox 2 – Code Snippets With Cloud Support está disponível para download aqui no Ultrapack. Após baixar o arquivo .zip, acesse Plugins > Adicionar Novo > Enviar plugin no painel do WordPress, faça o envio e ative. O gerenciador de snippets fica acessível imediatamente no menu administrativo.
Ao estruturar a biblioteca de scripts em nuvem, o plugin organiza funções de PHP, estilizações em CSS e scripts de frontend com carregamento granular. Essa abordagem dispensa temas filhos para pequenas customizações e acelera o fluxo de trabalho de desenvolvedores e agências que mantêm múltiplos projetos simultâneos no WordPress, garantindo controle pontual sobre onde cada trecho deve rodar.
Perguntas Frequentes
O plugin WPCodeBox 2 – Code Snippets With Cloud Support é GPL?
Sim. O WPCodeBox 2 – Code Snippets With Cloud Support é distribuído sob a licença GPL (GNU General Public License). Você pode usar, modificar e redistribuir legalmente, em quantos sites quiser.
Posso usar o plugin WPCodeBox 2 – Code Snippets With Cloud Support em mais de um site?
Sim. Você pode instalar o WPCodeBox 2 – Code Snippets With Cloud Support em quantos sites quiser. Só as atualizações automáticas pelo Ultrapack Auto Updater têm limite: de 3 a 80 sites, conforme o plano.
Quanto custa o plugin WPCodeBox 2 – Code Snippets With Cloud Support no Ultrapack?
O WPCodeBox 2 – Code Snippets With Cloud Support sai por R$ 14,90 na compra avulsa, e também está incluído nos planos de assinatura a partir de R$59/mês (VIP I).
O plugin WPCodeBox 2 – Code Snippets With Cloud Support inclui atualizações?
Sim. A versão atual do WPCodeBox 2 – Code Snippets With Cloud Support é a 1.4.1, publicada no Ultrapack em 28/09/2026. Assinantes atualizam direto do painel do WordPress com o UAU (Ultrapack Auto Updater).
O plugin WPCodeBox 2 – Code Snippets With Cloud Support é seguro para baixar e instalar no meu WordPress?
Sim. Cada versão do WPCodeBox 2 – Code Snippets With Cloud Support passa por varredura de malware (ClamAV e regras YARA, no UltraHub) antes de ser publicada.
Quais são os requisitos do plugin WPCodeBox 2 – Code Snippets With Cloud Support?
Requer WordPress 5.6 ou superior e PHP 7.4 ou superior. Testado até o WordPress 7.1.
O que mudou nesta versão
Versão 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.
Versão 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/`.
Versão 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
Versão 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
Versão 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
Notas de versão publicadas pelo desenvolvedor.
Como instalar
Atualização automática: este item é atualizado pelo Ultrapack Auto Updater. Com ele instalado, a versão nova aparece no seu painel como qualquer outra atualização do WordPress (como configurar).
- Baixe o arquivo
wpcodebox2.zip. - No painel do WordPress, vá em Plugins > Adicionar novo > Enviar plugin.
- Selecione o arquivo
wpcodebox2.zipe clique em Instalar agora. - Clique em Ativar.
Requisitos: Requer WordPress 5.6 ou superior e PHP 7.4 ou superior. Testado até o WordPress 7.1.
Travou em algum passo? Abra um chamado dizendo em qual deles parou.

UAU Ready