Astra_Admin_Settings::astra_get_spectra_plugin_data()

Check if Spectra is installed.


Description


Return

(array)


Source

File: inc/core/class-astra-admin-settings.php

		public static function astra_get_spectra_plugin_data() {
			$path    = 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php';
			$plugins = get_plugins();
			/** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
			return array(
				'is_exist' => isset( $plugins[ $path ] ),
				'version'  => ( isset( $plugins[ $path ] ) && $plugins[ $path ]['Version'] ) ? $plugins[ $path ]['Version'] : '2.0.0',
			);
			/** @psalm-suppress PossiblyUndefinedStringArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
		}

Changelog

Changelog
Version Description
3.9.2 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.