Skip to main content
Documentation/Developers/APIs/Hooks Reference/Settings & Admin

Settings & Admin

breakdance_register_admin_settings_page_register_tabs has no arguments. Register a tab inside it:

PHP
add_action('breakdance_register_admin_settings_page_register_tabs', function () {
    BreakdanceAdminSettingsPageaddTab(
        'Acme Service',
        'acme_service',
        function () {
            echo '<h2>Acme Service</h2><p>Extension status information.</p>';
        },
        3000
    );
});

addTab($name, $slug, $callback, $order) returns nothing. Name/slug are strings, the callback prints content, and numeric order controls placement. The example opens at admin.php?page=breakdance_settings&tab=acme_service.

Breakdance WordPress Settings with a custom Acme Service tab and read-only status content
Breakdance WordPress Settings with a custom Acme Service tab and read-only status content

Editable forms require your own capability checks, nonce, validation, and persistence; registration creates no save endpoint.

API-Key Fields and Visitor Tracking

Filter Initial value Effect of returning true
breakdance_disable_default_api_keys false Skips default API-key field registration through that path.
breakdance_disable_track_view_and_session_counts false Skips Breakdance's visitor-count tracking routine.

Both return booleans. Hiding fields does not delete credentials; disabling tracking does not stop unrelated cookies. For individual credentials, use API key fields.