Breakdance has built-in support for WPCodeBox, the most powerful Code Snippets plugin for WordPress. Breakdance’s integration allows you to send existing code from Breakdance to WPCodeBox.
Before beginning with this integration, please ensure you have WPCodeBox installed on your site. If you don’t own WPCodeBox yet, you may find a discount code available on the Partner Discounts page.
When working in Code areas in Breakdance, you’ll now be able to send the code to WPCodeBox. This option will be available for the following areas:
Sending code to WPCodeBox is beneficial when you’re using a function and would like to call that function on other pages or templates on the site, or you’re using Breakdance to build PHP and see the changes live. After you’ve sent the code to WPCodeBox, you’ll see a new line of PHP that will look similar to \BreakdanceWPCodeBox\runSnippet(3);
. You may leave this code as-is or replace it to call the function you just moved.