-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrt-plugin-template.php
More file actions
30 lines (24 loc) · 848 Bytes
/
rt-plugin-template.php
File metadata and controls
30 lines (24 loc) · 848 Bytes
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
<?php
/*
Plugin Name: RT Plugin Template
Plugin URI: https://github.com/Theo-Rige/wp-plugin-template
Description: A simple WordPress plugin template.
Version: 0.1.0
Author: Theo Rige
Author URI: https://rigetheo.netlify.app/
Developer: Theo Rige
Developer URI: https://rigetheo.netlify.app/
Text Domain: rt-plugin-template
Domain Path: /languages
*/
use RT\Plugin;
if (!defined('ABSPATH')) exit;
define('RT_PLUGIN_URL', plugin_dir_url(__FILE__));
define('RT_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('RT_PLUGIN_BASENAME', plugin_basename(__FILE__));
define('RT_PLUGIN_DOMAIN', 'rt-plugin-template');
define('RT_PLUGIN_VERSION', '0.1.0');
require_once RT_PLUGIN_DIR . 'includes/plugin.php';
register_activation_hook(__FILE__, [Plugin::class, 'activate']);
register_uninstall_hook(__FILE__, [Plugin::class, 'uninstall']);
Plugin::init();