-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbiolinks.php
More file actions
41 lines (34 loc) · 1.15 KB
/
Copy pathbiolinks.php
File metadata and controls
41 lines (34 loc) · 1.15 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
<?php
declare(strict_types=1);
/**
* Plugin Name: BioLinks
* Plugin URI: https://github.com/JeremieSamson/biolinks
* Description: Self-hosted link in bio page with 5 templates, click tracking, and analytics.
* Version: 1.1.7
* Author: Jérémie Samson
* Author URI: https://nomadesurrails.fr
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: biolinks
* Domain Path: /languages
* Requires at least: 5.9
* Tested up to: 6.9
* Requires PHP: 8.0
*/
if (!defined('ABSPATH')) {
exit;
}
define('BIOLINKS_VERSION', '1.1.7');
define('BIOLINKS_PATH', plugin_dir_path(__FILE__));
define('BIOLINKS_URL', plugin_dir_url(__FILE__));
require_once BIOLINKS_PATH . 'includes/icons.php';
require_once BIOLINKS_PATH . 'includes/class-biolinks-db.php';
require_once BIOLINKS_PATH . 'includes/class-biolinks-admin.php';
require_once BIOLINKS_PATH . 'includes/class-biolinks-dashboard.php';
require_once BIOLINKS_PATH . 'includes/class-biolinks-front.php';
register_activation_hook(__FILE__, [BioLinks_DB::class, 'activate']);
if (is_admin()) {
new BioLinks_Admin();
new BioLinks_Dashboard();
}
new BioLinks_Front();