benecaster_support_diagnostics_sections
Filters the sections rendered on the support diagnostics panel. Return the array. Each entry is { id: string, title: string, render: callable }.
render is called with no arguments and is expected to echo its own markup — a callable that returns a string instead of echoing produces an empty section with no error. Returning an empty array renders no sections rather than restoring the built-in ones.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$sections |
array |
— | Current sections, each { id, title, render }. |
Returns:
array
Need this built rather than just documented? See our services →