-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublishpress-checklists-plugin-bootstrap.php
52 lines (45 loc) · 1.74 KB
/
publishpress-checklists-plugin-bootstrap.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
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* PublishPress Checklists Plugin Bootstrap.
*
* This is a demo of how to extend the PublishPress Checklists add-on.
*
* @link https://publishpress.com/addons/content-checklist/
* @package PublishPress\Checklists_plugin_bootstrap
* @author PublishPress <[email protected]>
* @copyright Copyright (C) 2021 PublishPress. All rights reserved.
* @license GPLv2 or later
* @since 1.0.0
*
* @publishpress-checklists-plugin-bootstrap
* Plugin Name: PublishPress Checklists Plugin Bootstrap
* Plugin URI: https://publishpress.com/
* Version: 2.0.2
* Description: Add a custom checklist as example to content
* Author: PublishPress
* Author URI: https://publishpress.com
*/
if (! defined('ABSPATH')) {
die('No direct script access allowed.');
}
// Avoid loading the plugin twice.
if (! defined('PUBLISHPRESS_CHECKLISTS_BOOTSTRAP_LOADED')) {
/**
* Call the composer's autoload. We advise to use it for your own libraries.
*/
$autoloadPath = __DIR__ . '/vendor/autoload.php';
if (file_exists($autoloadPath)) {
require_once $autoloadPath;
}
// Define the constant to store the plugins' file path.
define(
'PUBLISHPRESS_CHECKLISTS_BOOTSTRAP_PLUGIN_FILE',
'publishpress-checklists-plugin-bootstrap/publishpress-checklists-plugin-bootstrap.php'
);
// Define the constant to store the plugin version
define('PUBLISHPRESS_CHECKLISTS_BOOTSTRAP_VERSION', '2.0.2');
// Define a constant to be a flag saying it is already loaded.
define('PUBLISHPRESS_CHECKLISTS_BOOTSTRAP_LOADED', 1);
// Initialize the plugin's code as an addon.
add_action('publishpress_checklists_load_addons', ['PublishPressChecklistsBootstrap\\Addon', 'init']);
}