-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbasic-scaffold.php
More file actions
39 lines (37 loc) · 1.26 KB
/
basic-scaffold.php
File metadata and controls
39 lines (37 loc) · 1.26 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
<?php
/**
* MWPD Basic Plugin Scaffold.
*
* @package MWPD\BasicScaffold
* @author Alain Schlesser <alain.schlesser@gmail.com>
* @license MIT
* @link https://www.mwpd.io/
* @copyright 2019 Alain Schlesser
*
*------------------------------------------------------------------------------
*-- 1. Provide the plugin meta information that WordPress needs. --
*------------------------------------------------------------------------------
*
* @wordpress-plugin
* Plugin Name: MWPD Basic Plugin Scaffold
* Plugin URI: https://www.mwpd.io/
* Description: Basic plugin scaffold for the "Modern WordPress Plugin Development" book,
* Version: 0.1.0
* Requires PHP: 7.2
* Author: Alain Schlesser <alain.schlesser@gmail.com>
* Author URI: https://www.alainschlesser.com/
* Text Domain: mwpd-basic
* Domain Path: /languages
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*/
/*
* As this is the only PHP file having side effects, we need to provide a
* safeguard, so we want to make sure this file is only run from within
* WordPress and cannot be directly called through a web request.
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
require_once __DIR__ . '/src/boot.php';
\MWPD\BasicScaffold\boot(__DIR__);