-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
smol-links.php
39 lines (37 loc) · 1.12 KB
/
smol-links.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
<?php
/**
* Smol Links
*
* @package Smol Links
* @author The Markup
* @license GPL-2.0-or-later
* @link https://themarkup.org/
* @copyright 2024 The Markup
*
* @wordpress-plugin
* Plugin Name: Smol Links
* Description: Create and manage Shlink short links from WordPress
* Requires at least: 4.5
* Requires PHP: 7.0
* Version: 0.4.2
* Author: The Markup
* Author URI: https://themarkup.org/
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: smol-links
*/
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once(__DIR__ . '/vendor/autoload.php');
} else {
require_once __DIR__ . '/src/API.php';
require_once __DIR__ . '/src/Editor.php';
require_once __DIR__ . '/src/Manager.php';
require_once __DIR__ . '/src/Options.php';
require_once __DIR__ . '/src/Plugin.php';
require_once __DIR__ . '/src/Settings.php';
require_once __DIR__ . '/src/ShlinkException.php';
}
add_action('plugins_loaded', function() {
global $smol_links_plugin;
$smol_links_plugin = new SmolLinks\Plugin();
});