Dataeasy_svg_settings

easy_svg_settings

The option that holds the feature switches and the parse-size limit.

Option · Easy SVG · Status: Internal · Defined in includes/settings.php

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

Usage

get_option( 'easy_svg_settings' )

Example

$settings = easy_svg_settings();
if ( $settings['icons'] ) {
	// The icon library is on.
}

Description

An array with svg_upload (bool), icons (bool) and max_mb (int). Both features are off on a fresh install and max_mb is 2. Read it through easy_svg_settings() or easy_svg_feature_enabled(), which merge defaults and clamp max_mb. The features are wired up when the plugin file loads, so a change takes effect on the next request. Written by POST easy-svg/v1/settings and by the one-time 5.0 migration; removed on uninstall.

Default: array( 'svg_upload' => false, 'icons' => false, 'max_mb' => 2 )

Write it with easy_svg_sanitize_settings() or the REST route. A missing key reads as its default, so saving a partial array switches the omitted features off.