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'; } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |