-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin-name.php
38 lines (31 loc) · 1.27 KB
/
plugin-name.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
<?php
/**
* @wordpress-plugin
* Plugin Name: Plugin Name
* Plugin URI: http://example.com/plugin-name-uri/
* Description: This is a short description of what the plugin does. It's displayed in the WordPress dashboard.
* Version: X.X.X
* Author: Your Name or Your Company
* Author URI: http://yourwebsite.com/
* License: MIT
* License URI: http://opensource.org/licenses/MIT
* Text Domain: plugin-name
* Domain Path: /languages
*/
/*----------------------------------------------------------------------------*
* Protect File.
*----------------------------------------------------------------------------*/
if (!defined('WPINC')) {
die;
}
/*----------------------------------------------------------------------------*
* Autoload Classes.
*----------------------------------------------------------------------------*/
require_once 'lib/autoload.php';
/*----------------------------------------------------------------------------*
* Boot!
*----------------------------------------------------------------------------*/
$updatePhp = new WPUpdatePhp('5.3.0');
if ($updatePhp->does_it_meet_required_php_version(PHP_VERSION)) {
call_user_func(array(new Plugin_Name\App(__FILE__), 'boot'));
}