WPCodeBox
Send To CodeBox moves PHP from a supported Breakdance editor into a reusable WPCodeBox snippet. WPCodeBox must be installed and active.
Create a Snippet
- Open a Code Block > PHP & HTML, listing Array Query, or Custom PHP Condition containing code.
- Click Send To CodeBox, then save the Breakdance document. The original field becomes a call to the created snippet:
PHP
BreakdanceWPCodeBoxrunSnippet(3);
The number is the returned snippet ID; use that ID, not the example's 3. Make subsequent changes in WPCodeBox. Queries, conditions, and Code Blocks still require their respective output types.
Hide the Integration
Enable Breakdance > Settings > Privacy > Builder Integration > Hide integrations in the builder, save, and reload. Existing snippets remain.
If the button opens an information dialog, confirm WPCodeBox is active. The button only appears in supported PHP editors containing code.