Icons paneleasy_svg_panel_user_may_open()

easy_svg_panel_user_may_open()

Tells whether the current user may see at least one panel tab.

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_user_may_open(): bool

Example

if ( easy_svg_panel_user_may_open() ) {
	$url = admin_url( 'admin.php?page=' . EASY_SVG_PANEL_SLUG );
}

Description

Decides whether the page renders. REST routes check permissions on their own.

Return value

returnbool

True when a tab is visible.