-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskeleton-plugin.php
44 lines (34 loc) · 1.1 KB
/
skeleton-plugin.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
<?php
/*
Plugin Name: Skeleton Plugin
description: A starter plugin based on ModulesPress foundation.
Version: 1.0.0
Author: Devs Routes Co
License: GPL2
Text Domain: skeleton-plugin
*/
use ModulesPress\Foundation\ModulesPressPlugin;
use Skeleton\Modules\RootModule\RootModule;
if (!defined('ABSPATH')) exit; // Exit if accessed directly
if (!class_exists('SkeletonPlugin')) {
require_once __DIR__ . '/vendor/autoload.php';
final class SkeletonPlugin extends ModulesPressPlugin
{
public const NAME = "Skeleton Plugin";
public const SLUG = "skeleton-plugin";
public const PREFIX = "sp_";
protected string $version = "1.0.0";
protected bool $isDevelopment = true;
protected bool $isDebug = true;
protected string $restNamespace = "skeleton-plugin/v1";
public function __construct()
{
parent::__construct(
rootModule: RootModule::class,
rootDir: __DIR__,
rootFile: __FILE__
);
}
}
(new SkeletonPlugin())->bootstrap();
}