PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.2.82
WindPress – Tailwind CSS integration for WordPress v3.2.82
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.2.82, at windpress.php

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