-
Notifications
You must be signed in to change notification settings - Fork 0
/
bhaa-wordpress-plugin.php
54 lines (50 loc) · 1.57 KB
/
bhaa-wordpress-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
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* @package bhaa-wordpress-plugin
*
* @wordpress-plugin
* Plugin Name: BHAA Wordpress Plugin
* Plugin URI: https://github.com/emeraldjava/bhaa-wordpress-plugin
* Description: Plugin for the Business House Athletic Association. Handles user registration, race results and leagues.
* Version: 2020.12.28
* Author: emeraldjava
* Author URI: https://github.com/emeraldjava
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: BHAA Wordpress Plugin
* Domain Path: /languages
*/
namespace BHAA;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
/**
* Current plugin version.
*/
define( 'BHAA_WORDPRESS_PLUGIN_VERSION', '2020.12.28' );
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-plugin-name-activator.php
*/
function activate_plugin_name() {
utils\Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-plugin-name-deactivator.php
*/
function deactivate_plugin_name() {
utils\Deactivator::deactivate();
}
register_activation_hook( __FILE__, '\BHAA\activate_plugin_name' );
register_deactivation_hook( __FILE__, '\BHAA\deactivate_plugin_name' );
/**
* Begins execution of the plugin.
*/
function runBhaaWordpressPlugin() {
$plugin = new Main(BHAA_WORDPRESS_PLUGIN_VERSION);
$plugin->run();
}
runBhaaWordpressPlugin();