-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtoibox-starter-plugin.php
50 lines (42 loc) · 1.19 KB
/
toibox-starter-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
45
46
47
48
49
50
<?php
/**
* Plugin Name: Plugin_Name
* Plugin URI: https://petertoi.com
* Description: Plugin Description
* Version: 1.0.0
* Requires at least: @TODO WordPress version requirement
* Requires PHP: @TODO PHP version requirement
* Author: Peter Toi
* Author URI: https://petertoi.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: plugin-name
* Domain Path: /public/lang
* Network: @TODO can this be activated network wide?
*/
use Toi\Plugin_Name\Plugin as Plugin_Name;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! defined( 'TOI_PLUGIN_NAME_VERSION' ) ) {
define( 'TOI_PLUGIN_NAME_VERSION', '1.0.0' );
}
require_once 'autoloader.php';
/**
* Global function providing access to the plugin.
*
* @since 1.0.0
*/
function toibox_plugin_name() {
/**
* @var $toibox_plugin_name Plugin_Name
*/
$toibox_plugin_name = Plugin_Name::get_instance();
return $toibox_plugin_name;
}
// Ready, steady, GO!
toibox_plugin_name()->initialize(
__FILE__,
TOI_PLUGIN_NAME_VERSION
);