slimstat_report_header_buttons
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.
Usage
$header_buttons = apply_filters('slimstat_report_header_buttons', $header_buttons, $_id);
Explanation
The filter provides two arguments to your function:
- $header_buttons: An array containing the buttons for the report.
- $_id: The ID of the report.