Icons paneleasy_svg_panel_tabs_for_user()

easy_svg_panel_tabs_for_user()

Returns the menu tabs the current user may see, each with label and capability.

Function · Easy SVG · Status: Internal · Defined in includes/panel.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_panel_tabs_for_user(): array

Example

$visible = easy_svg_panel_tabs_for_user();

Description

A plain label is normalised to the capability manage_options.

Return value

returnarray<string, array{label:string, capability:string}>

Visible tabs.