-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquick-redirect-manager.php
37 lines (32 loc) · 1.05 KB
/
quick-redirect-manager.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
<?php
/**
* Plugin Name: Quick Redirect Manager
* Plugin URI: https://github.com/p-nerd/quick-redirect-manager
* Description: A lightweight, user-friendly plugin to manage URL redirections. No database tables, just simple WordPress-native storage.
* Version: 1.0.0
* Requires at least: 5.0
* Requires PHP: 8.0
* Author: Shihab Mahamud
* Author URI: https://github.com/p-nerd
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: quick-redirect-manager
* Domain Path: /languages
*/
// Prevent direct access to this file
if (! defined('ABSPATH')) {
exit;
}
// Define plugin constants
define('QRM_VERSION', '1.0.0');
define('QRM_FILE', __FILE__);
define('QRM_PATH', dirname(QRM_FILE));
define('QRM_URL', plugins_url('', QRM_FILE));
// Check if Composer autoloader exists
if (file_exists(QRM_PATH.'/vendor/autoload.php')) {
require_once QRM_PATH.'/vendor/autoload.php';
}
// Initialize the plugin
if (class_exists(\PNerd\QuickRedirectManager\Plugin::class)) {
new \PNerd\QuickRedirectManager\Plugin;
}