Logo
Logo

Actions API

This documentation is intended for developers who wish to build extensions for Breakdance.

Breakdance has a number of filters and action hooks that can be used to modify and extend the default behavior of Breakdance.

A complete list of hooks can be found in the Hooks API documentation on GitHub.

For example, on Breakdance shape dividers:

add_filter('breakdance_shape_dividers', function ($dividers) {

    $myDivider = [
        'text' => 'My Divider',
        'value' => file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . "my-divider.svg")
    ];

    $dividers[] = $myDivider;

    return $dividers;
});