PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.86
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.86
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
← All changes | includes/helpers/Check_Requirements/Check_Requirements.php +31 -0 51.1.2 → 51.1.86 View file →
@@ -1,0 +1,31 @@
1 +<?php
2 +
3 +namespace King_Addons;
4 +
5 +if (!defined('ABSPATH')) {
6 + exit; // Exit if accessed directly.
7 +}
8 +
9 +final class Check_Requirements
10 +{
11 + public static function check_import_requirements(): array
12 + {
13 + $requirements = [
14 + 'memory' => (int)ini_get('memory_limit') >= 128, // Check if memory is at least 128MB
15 +// 'zip' => class_exists('ZipArchive'),
16 + // Add more checks if necessary
17 + ];
18 +
19 + $errors = [];
20 +
21 + if (!$requirements['zip']) {
22 + $errors[] = 'ZIP module is not enabled on this server.';
23 + }
24 +
25 + if (!$requirements['memory']) {
26 + $errors[] = 'Memory limit is less than 128MB.';
27 + }
28 +
29 + return $errors;
30 + }
31 +}