Skip to main content
Documentation/Integrations/Code and Writing/WPCodeBox

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

  1. Open a Code Block > PHP & HTML, listing Array Query, or Custom PHP Condition containing code.
  2. Click Send To CodeBox, then save the Breakdance document. The original field becomes a call to the created snippet:
PHP
<?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.