-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheasyroadmap.php
More file actions
81 lines (73 loc) · 2.75 KB
/
easyroadmap.php
File metadata and controls
81 lines (73 loc) · 2.75 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* Plugin Name: EasyRoadmap
* Plugin URI: https://easysuite.io
* Author: EasyCommerce
* Author URI: https://easysuite.io/easyroadmap
* Description: Build and share your product roadmap with a visual, drag-and-drop Kanban board.
* Version: 0.9.1
* Requires at least: 6.0
* Tested up to: 6.8
* Requires PHP: 7.4
* Text Domain: easyroadmap
* Domain Path: /languages
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* EasyRoadmap is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* EasyRoadmap is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
namespace EasyRoadmap;
defined( 'ABSPATH' ) || exit;
define( 'EASYROADMAP_FILE', __FILE__ );
define( 'EASYROADMAP_VERSION', '0.9.1' );
define( 'EASYROADMAP_PLUGIN_DIR', plugin_dir_path( EASYROADMAP_FILE ) );
define( 'EASYROADMAP_PLUGIN_URL', plugin_dir_url( EASYROADMAP_FILE ) );
define( 'EASYROADMAP_ASSETS_URL', EASYROADMAP_PLUGIN_URL . 'assets/' );
require_once 'vendor/autoload.php';
/**
* Register the activation hook.
* This hook is triggered when the plugin is activated.
* It installs necessary database tables, sets initial seeds,
* and checks database versions.
*/
register_activation_hook( EASYROADMAP_FILE, __NAMESPACE__ . '\\easyroadmap_install' );
function easyroadmap_install() {
Bootstrap\Installer::install();
}
/**
* Register the deactivation hook.
* This hook is triggered when the plugin is activated.
* It uninstalls necessary database tables, sets initial seeds,
* and checks database versions.
*/
register_deactivation_hook( EASYROADMAP_FILE, __NAMESPACE__ . '\\easyroadmap_uninstall' );
function easyroadmap_uninstall() {
Bootstrap\Uninstaller::uninstall();
}
/**
* Add action for plugins_loaded to activate the plugin.
* This action is triggered when all active plugins are fully loaded.
* It sets up cron jobs, registers custom user roles, and performs other
* necessary activation tasks.
*/
add_action( 'plugins_loaded', __NAMESPACE__ . '\\easyroadmap_activate' );
function easyroadmap_activate() {
Bootstrap\Activator::activate();
}
/**
* Add action for plugins_loaded to initialize the plugin.
* This action is triggered when all active plugins are fully loaded.
* It sets the plugin's runtime environment and initializes hooks.
*/
add_action( 'plugins_loaded', __NAMESPACE__ . '\\easyroadmap_initialize' );
function easyroadmap_initialize() {
Bootstrap\Initializer::initialize();
}