-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwellness-wag.php
63 lines (52 loc) · 1.63 KB
/
wellness-wag.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* Wellness Wag Plugin
*
* @package Wellness Wag
* @link https://rankfoundry.com
* @copyright Copyright (C) 2021-2023, Rank Foundry LLC - [email protected]
* @since 1.0.0
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: Wellness Wag
* Plugin URI: https://rankfoundry.com/plugins/seo
* Description: A plugin of custom features for use by Wellness Wag.
* Version: 1.0.3
* Author: Rank Foundry
* Author URI: https://rankfoundry.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: wellness-wag
* Domain Path: /languages
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
// Define plugin version
if (!defined('WELLNESS_WAG_VERSION')) {
define('WELLNESS_WAG_VERSION', '1.0.3');
}
// Define plugin directory path
if (!defined('WELLNESS_WAG_PLUGIN_DIR')) {
define('WELLNESS_WAG_PLUGIN_DIR', plugin_dir_path(__FILE__));
}
// Define plugin file
if ( ! defined( 'WELLNESS_WAG_FILE' ) ) {
define( 'WELLNESS_WAG_FILE', __FILE__ );
}
// Load the Composer autoloader.
require_once WELLNESS_WAG_PLUGIN_DIR . 'vendor/autoload.php';
// Include the main class file
require_once WELLNESS_WAG_PLUGIN_DIR . 'includes/class-wellness-wag.php';
// Begin execution of the plugin.
function run_wellness_wag() {
$plugin = new Wellness_Wag();
// Register state urls on activation
register_activation_hook(WELLNESS_WAG_FILE, array($plugin, 'activate'));
// Remove state urls on deactivation
register_deactivation_hook(WELLNESS_WAG_FILE, array($plugin, 'deactivate'));
$plugin->run();
}
run_wellness_wag();