Astra_Menu::get_plugin_status( string $plugin_init_file )

Get plugin status


Description


Parameters

$plugin_init_file

(string) (Required) Plguin init file.


Return

(mixed)


Source

File: admin/includes/class-astra-menu.php

	public static function get_plugin_status( $plugin_init_file ) {

		$installed_plugins = get_plugins();

		if ( ! isset( $installed_plugins[ $plugin_init_file ] ) ) {
			return 'install';
		} elseif ( is_plugin_active( $plugin_init_file ) ) {
			return 'activated';
		} else {
			return 'installed';
		}
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.

User Contributed Notes

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