This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
write-poetry.php
65 lines (56 loc) · 1.57 KB
/
write-poetry.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Write Poetry
*
* @package WritePoetry
* @author Giacomo Secchi <[email protected]>
* @copyright 2023 Giacomo Secchi
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Write Poetry
* Plugin URI: https://github.com/giacomo-secchi/write-poetry
* Description: The Swiss knife plugin designed for developers and advanced users. Unlock the full potential of WordPress with this versatile tool. Empower your workflow without getting your hands dirty.
* Version: 0.3.7
* Requires at least: 5.9
* Requires PHP: 7.2
* Author: Giacomo Secchi
* Author URI: https://resume.giacomosecchi.com
* Text Domain: write-poetry
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Update URI: https://github.com/giacomo-secchi/write-poetry/
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
/**
* The code that runs during plugin activation
*/
register_activation_hook(
__FILE__,
function () {
WritePoetry\Base\Activate::activate();
}
);
/**
* The code that runs during plugin deactivation
*/
register_deactivation_hook(
__FILE__,
function () {
WritePoetry\Base\Deactivate::deactivate();
}
);
/**
* Initialize all the core classes of the plugin
*
* @since 0.2.2
*/
if ( class_exists( 'WritePoetry\\Init' ) ) {
WritePoetry\Init::register_services();
}