Skip to main content
Documentation/Developers/APIs/Forms/Breakdance Form Submissions Capability

Breakdance Form Submissions Capability

The breakdance_form_submission_capability filter sets the WordPress capability required to access Breakdance Form Submissions. The default is manage_options.

Change the Required Capability

The canonical example changes the required capability to edit_posts:

PHP
add_filter('breakdance_form_submission_capability', function () {
    return 'edit_posts';
});

Every user with that capability can access submissions; edit_posts is not exclusive to editors. Return the capability appropriate for the users who should have access. A custom capability can be assigned to a dedicated role when you need to manage submission access separately.

The filter returns one capability name, not a role name or an array. It changes the permission checked by Breakdance; it does not assign capabilities to users.

See WordPress's Roles and Capabilities reference.