tus
*
* @since 0.0.1
*
* @param string $plugin_init_file Plugin init file.
* @return string
*/
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';
}
}
/**
* Get the status of a theme.
*
* @param string $theme_slug The slug of the theme.
* @return string The theme status: 'Activated', 'Installed', or 'Install'.
*
* @since 0.0.1
*/
public static function get_theme_status( $theme_slug ) {
$installed_themes = wp_get_themes();
// Check if the theme is installed.
if ( isset( $installed_themes[ $theme_slug ] ) ) {
$current_theme = wp_get_theme();
// Check if the current theme slug matches the provided theme slug.
if ( $current_theme->get_stylesheet() === $theme_slug ) {
return 'Activated'; // Theme is active.
} else {
return 'Installed'; // Theme is installed but not active.
}
} else {
return 'Install'; // Theme is not installed at all.
}
}
}
Fatal error: Uncaught Error: Class "HFE\WidgetsManager\Base\Widgets_Config" not found in /home/kawiishc/public_html/wp-content/plugins/header-footer-elementor/inc/widgets-manager/base/hfe-helper.php:146
Stack trace:
#0 /home/kawiishc/public_html/wp-content/plugins/header-footer-elementor/inc/widgets-manager/base/hfe-helper.php(309): HFE\WidgetsManager\Base\HFE_Helper::get_widget_list()
#1 /home/kawiishc/public_html/wp-content/plugins/header-footer-elementor/inc/widgets-manager/base/hfe-helper.php(389): HFE\WidgetsManager\Base\HFE_Helper::get_widget_options()
#2 /home/kawiishc/public_html/wp-content/plugins/header-footer-elementor/inc/widgets-manager/class-extensions-loader.php(97): HFE\WidgetsManager\Base\HFE_Helper::is_widget_active('Scroll_To_Top')
#3 /home/kawiishc/public_html/wp-content/plugins/header-footer-elementor/inc/widgets-manager/class-extensions-loader.php(65): HFE\WidgetsManager\Extensions_Loader->include_extensions_files()
#4 /home/kawiishc/public_html/wp-includes/class-wp-hook.php(353): HFE\WidgetsManager\Extensions_Loader->elementor_init('')
#5 /home/kawiishc/public_html/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
#6 /home/kawiishc/public_html/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
#7 /home/kawiishc/public_html/wp-content/plugins/elementor/includes/plugin.php(671): do_action('elementor/init')
#8 /home/kawiishc/public_html/wp-includes/class-wp-hook.php(353): Elementor\Plugin->init('')
#9 /home/kawiishc/public_html/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
#10 /home/kawiishc/public_html/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
#11 /home/kawiishc/public_html/wp-settings.php(779): do_action('init')
#12 /home/kawiishc/public_html/wp-config.php(87): require_once('/home/kawiishc/...')
#13 /home/kawiishc/public_html/wp-load.php(50): require_once('/home/kawiishc/...')
#14 /home/kawiishc/public_html/wp-blog-header.php(13): require_once('/home/kawiishc/...')
#15 /home/kawiishc/public_html/index.php(17): require('/home/kawiishc/...')
#16 {main}
thrown in /home/kawiishc/public_html/wp-content/plugins/header-footer-elementor/inc/widgets-manager/base/hfe-helper.php on line 146