-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtcc-plugin.php
43 lines (39 loc) · 1.38 KB
/
tcc-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
<?php
/**
* Plugin Description?
*
* @package Custom Post Type Plugin
* @author Author Name <author@email>
* @copyright 2020 Author Name
* @license GPLv2 <https://www.gnu.org/licenses/gpl-2.0.html>
* @link link
*
* @wordpress-plugin
* Plugin Name: Custom Post Type Plugin
* Plugin URI: https://example.com/plugin-name
* Description: Description for the plugin.
* Version: 0.1.0
* Requires at least: 4.7.0
* Tested up to: 5.2.0
* Requires PHP: 5.3.6
* Author: Author Name
* Author URI: https://example.com
* GitHub URI: github uri needed if using plugin-update-checker
* Text Domain: plugin-domain
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Domain Path: /languages
* Tags: what, where, when, who, how, why
*/
defined( 'ABSPATH' ) || exit;
/*
# https://github.com/helgatheviking/Nav-Menu-Roles/blob/master/nav-menu-roles.php
if ( ! defined('ABSPATH') || ! function_exists( 'is_admin' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
} //*/
define( 'TCC_PLUGIN_DIR' , plugin_dir_path( __FILE__ ) );
require_once( 'functions.php' );
$plugin = TCC_Plugin_Base::get_instance( array( 'file' => __FILE__ ) );
register_activation_hook( __FILE__, array( 'TCC_Register_Plugin', 'activate' ) );