Dataeasy_svg_migration_decision()

easy_svg_migration_decision()

Decides what the 5.0 migration seeds: uploads on for a site that already has SVGs.

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

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

Usage

easy_svg_migration_decision( bool $option_exists, bool $has_svgs ): ?array

Example

$seed = easy_svg_migration_decision( false, true );

Description

Pure. Returns null when settings already exist or the site has no SVGs, otherwise array( svg_upload true, icons false, max_mb 2 ).

Parameters

body
$option_existsbool

Whether settings are stored.

body
$has_svgsbool

Whether the media library holds an SVG.

Return value

returnarray|null

Settings to store, or null.