Icons panelwindow.EasySvgPanel.get

window.EasySvgPanel.get

Returns the tab registered under an id, or undefined.

JavaScript hook · Easy SVG · Status: Internal · Defined in src/panel/registry.js

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

Usage

window.EasySvgPanel.get( id ): object|undefined

Example

wp_add_inline_script( 'easy-svg-panel', 'var tab = window.EasySvgPanel.get( "reports" );' );

Description

The panel uses it to see whether the Pro add-on registered a tab such as licence.