slimstat_reports_info
Applies to SlimStat 6.0.0 and SlimStat Pro 3.0.0 · checked
slimstat_reports_info filters the report registry. Return the registry array after adding or changing your entry. Each custom report needs a unique ID and a callable renderer.
| Entry | Meaning |
|---|---|
title | Report heading |
callback | Your callable rendering function |
callback_args | Arguments passed to the renderer |
callback_args['raw'] | Optional raw-data callback for supported report/export integrations |
classes | Layout classes such as normal |
locations | Screen IDs such as slimview3 or dashboard |
Screen IDs use slimview1 through slimview6, not the old wp-slim-view-* spelling. A function named in the registry must actually exist in your plugin. See the complete custom-report example for registration, a capability check and escaped output.
Keep raw queries bounded and preserve site/network scope. A custom report must not grant a subsite administrator access to another site’s analytics.