Back to Filters

Updated on Jun 10, 2024


You can use the slimstat_report_header_buttons filter to add custom buttons to the report headers. For example, our premium Export to Excel add-on uses this to add an “Export to Excel” button. You can manage the button click actions using JavaScript.


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


The filter provides two arguments to your function:

  • $header_buttons: An array containing the buttons for the report.
  • $_id: The ID of the report.