Filters

slimstat_report_header_buttons

Applies to SlimStat 6.0.0 and SlimStat Pro 3.0.0 · checked

This filter receives the report-header HTML string and the report ID. Return an HTML string, appending your markup if needed. Escape labels and URLs before adding markup. Add accessible labels to custom controls and require capability and nonce checks for any action they invoke.

Callback signature

add_filter( 'slimstat_report_header_buttons', function ( $buttons, $report_id ) {
    return $buttons;
}, 10, 2 );

Test callbacks on staging with your tracking mode and report context. See the database API, building an add-on and adding a custom report.