-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
41 lines (37 loc) · 1.32 KB
/
index.php
File metadata and controls
41 lines (37 loc) · 1.32 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
40
41
<?php
/**
* WordPress Plugin Name
*
* @package WordPress_Plugin_Name
* @author Zachary K. Watkins <zwatkins.it@gmail.com>
* @copyright Zachary K. Watkins 2023
* @license GPL-2.0-or-later
* @see https://developer.wordpress.org/reference/functions/
*
* @wordpress-plugin
* Plugin Name: WordPress Plugin Name
* Plugin URI: https://github.com/zachwatkins/wordpress-plugin-name
* Description: A template WordPress plugin.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 8.1
* Author: Zachary K. Watkins
* Author URI: https://github.com/zachwatkins
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wordpress-plugin-name-textdomain
* Update URI: https://github.com/zachwatkins/wordpress-plugin-name
*/
namespace WordPress_Plugin_Name;
if ( ! defined( 'ABSPATH' ) ) {
die( 'Do not directly request this file in your browser.' );
}
const PLUGIN_FILE = __FILE__;
const PLUGIN_DIR = __DIR__ . '/';
const PLUGIN_KEY = 'wordpress-plugin-name';
const POST_TYPE_KEY = 'custom_post_type';
define( 'WordPress_Plugin_Name\PLUGIN_URL', plugin_dir_url( __FILE__ ) );
require 'src/shortcodes.php';
require 'src/post-type.php';
require 'src/admin/settings.php';
require 'src/demo.php';