| @@ -2,13 +2,14 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: WDesignKit - Elementor & Gutenberg Starter Templates, Patterns, Cloud Workspace & Widget Builder |
| 4 | 4 | * Plugin URI: https://wdesignkit.com/ |
| 5 | 5 | * Description: Your All-in-One solution for effortless WordPress website creation and collaboration. With over 1,000+ Elementor and WordPress website templates, a library of 100+ pre-made widgets for Elementor, Gutenberg Blocks, and Bricks, along with a cloud workspace for collaboration and more. |
| 6 | - * Version: 2.3.3 | |
| 6 | + * Version: 2.6.4 | |
| 7 | 7 | * Author: POSIMYTH |
| 8 | 8 | * Author URI: https://posimyth.com/ |
| 9 | 9 | * Text Domain: wdesignkit |
| 10 | 10 | * Domain Path: /languages |
| 11 | + * Requires PHP: 7.4 | |
| 11 | 12 | * License: GPLv3 |
| 12 | 13 | * License URI: https://opensource.org/licenses/GPL-3.0 |
| 13 | 14 | * |
| 14 | 15 | * @package wdesignkit |
| @@ -18,9 +19,25 @@ | ||
| 18 | 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | 20 | exit; |
| 20 | 21 | } |
| 21 | 22 | |
| 22 | -define( 'WDKIT_VERSION', '2.3.3' ); | |
| 23 | +if ( version_compare( PHP_VERSION, '7.4', '<' ) ) { | |
| 24 | + add_action( | |
| 25 | + 'admin_notices', | |
| 26 | + function () { | |
| 27 | + echo '<div class="notice notice-error"><p>' . | |
| 28 | + sprintf( | |
| 29 | + /* translators: %s: minimum required PHP version */ | |
| 30 | + esc_html__( 'WDesignKit requires PHP %s or higher. Please update PHP to use this plugin.', 'wdesignkit' ), | |
| 31 | + '7.4' | |
| 32 | + ) . | |
| 33 | + '</p></div>'; | |
| 34 | + } | |
| 35 | + ); | |
| 36 | + return; | |
| 37 | +} | |
| 38 | + | |
| 39 | +define( 'WDKIT_VERSION', '2.6.4' ); | |
| 23 | 40 | define( 'WDKIT_FILE', __FILE__ ); |
| 24 | 41 | define( 'WDKIT_PATH', plugin_dir_path( __FILE__ ) ); |
| 25 | 42 | define( 'WDKIT_PBNAME', plugin_basename( __FILE__ ) ); |
| 26 | 43 | define( 'WDKIT_BDNAME', basename( dirname( __FILE__ )) ); |