Icons panelwindow.EasySvgPanelData

window.EasySvgPanelData

The localized data the Icons panel starts from.

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

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

Usage

window.EasySvgPanelData

Example

wp_add_inline_script( 'easy-svg-panel', 'var root = window.EasySvgPanelData.restRoot;' );

Description

Set with wp_localize_script on the easy-svg-panel handle. Holds panelApi, tabCaps, caps, restRoot, nonce (wp_rest), icon, version, proActive, proVersion, proLicensed, iconsEnabled, iconBlock and maxMbCeiling. Read it in an add-on bundle instead of localizing the same values again.