PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.0.13
WindPress – Tailwind CSS integration for WordPress v3.0.13
3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 All 142 releases
windpress / windpress.php

windpress.php in WindPress – Tailwind CSS integration for WordPress 3.0.13, at windpress.php

46 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * WindPress - The most effortless Tailwind CSS v4 integration for WordPress
5 *
6 * @wordpress-plugin
7 * Plugin Name: WindPress
8 * Plugin URI: https://wind.press
9 * Description: The most effortless Tailwind CSS v4 integration for WordPress
10 * Version: 3.0.13
11 * Requires at least: 6.0
12 * Requires PHP: 7.4
13 * Author: WindPress
14 * Author URI: https://wind.press
15 * Donate link: https://ko-fi.com/Q5Q75XSF7
16 * Text Domain: windpress
17 * Domain Path: /languages
18 * License: GPL-3.0-or-later
19 *
20 * @package WindPress
21 * @author Joshua Gugun Siagian <suabahasa@gmail.com>
22 */
23 declare (strict_types=1);
24 namespace WindPressDeps;
25
26 use WindPress\WindPress\Plugin;
27 use WindPress\WindPress\Utils\Requirement;
28 \defined('ABSPATH') || exit;
29 if (\file_exists(__DIR__ . '/vendor/autoload.php')) {
30 if (\file_exists(__DIR__ . '/vendor/scoper-autoload.php')) {
31 require_once __DIR__ . '/vendor/scoper-autoload.php';
32 } else {
33 require_once __DIR__ . '/vendor/autoload.php';
34 }
35 $requirement = new Requirement();
36 $requirement->php('7.4')->wp('6.0');
37 if ($requirement->met()) {
38 Plugin::get_instance()->boot();
39 } else {
40 \add_action('admin_notices', fn() => $requirement->printNotice(), 0, 0);
41 // Deactivate the plugin if the requirements are not met.
42 // This is to ensure the activation process is executed at least once when the requirements are met.
43 \add_action('admin_init', fn() => \deactivate_plugins(\plugin_basename(__FILE__)), 0, 0);
44 }
45 }
46