-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin-name.php
More file actions
66 lines (58 loc) · 1.92 KB
/
plugin-name.php
File metadata and controls
66 lines (58 loc) · 1.92 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
<?php
/**
* Plugin Name: {{PLUGIN_NAME}}
* Plugin URI: {{PLUGIN_URI}}
* Description: {{PLUGIN_DESCRIPTION}}
* Version: {{PLUGIN_VERSION}}
* Author: VeronaLabs
* Author URI: https://veronalabs.com/
* Text Domain: {{PLUGIN_SLUG}}
* Domain Path: /public/languages
* Requires at least: {{MIN_WP}}
* Requires PHP: {{MIN_PHP}}
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*/
defined('ABSPATH') || exit;
/*
|--------------------------------------------------------------------------
| Premium compatibility check
|--------------------------------------------------------------------------
*/
require_once __DIR__ . '/src/premium-compatibility.php';
if ({{PLUGIN_HOOK}}_is_premium_active()) {
{{PLUGIN_HOOK}}_init_premium_compatibility(__FILE__);
return;
}
/*
|--------------------------------------------------------------------------
| Autoloader
|--------------------------------------------------------------------------
*/
// In production, wp-scoper generates packages/autoload.php.
// In development, Composer's vendor/autoload.php is used instead.
$composerAutoload = __DIR__ . '/packages/autoload.php';
if (!file_exists($composerAutoload)) {
$composerAutoload = __DIR__ . '/vendor/autoload.php';
}
if (file_exists($composerAutoload)) {
require_once $composerAutoload;
}
/*
|--------------------------------------------------------------------------
| Constants
|--------------------------------------------------------------------------
*/
require_once __DIR__ . '/src/constants.php';
/*
|--------------------------------------------------------------------------
| Functions
|--------------------------------------------------------------------------
*/
require_once __DIR__ . '/src/functions.php';
/*
|--------------------------------------------------------------------------
| Bootstrap
|--------------------------------------------------------------------------
*/
{{PLUGIN_NAMESPACE}}\Bootstrap::init();