Back to Filters

Updated on Nov 06, 2023


This filter is used to add custom buttons to the report header (like the button to export the report as an Excel spreadsheet, added by our premium Export to Excel add-on). You can handle the click on the button with Javascript. Two arguments are passed to the hooked function: the array of buttons for this report and the report ID.

$header_buttons = apply_filters('slimstat_report_header_buttons', $header_buttons, $_id);