Dataeasy_svg_feature_enabled()

easy_svg_feature_enabled()

Tells whether a feature, svg_upload or icons, is switched on.

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_feature_enabled( string $key ): bool

Example

if ( function_exists( 'easy_svg_feature_enabled' ) && easy_svg_feature_enabled( 'icons' ) ) {
	// Offer icon features.
}

Description

Unknown keys are off. The plugin calls it while its main file loads to decide which hooks to add, so flipping a setting takes effect on the next request.

Parameters

body
$keystring

svg_upload or icons.

Return value

returnbool

True when on.