-
Notifications
You must be signed in to change notification settings - Fork 0
/
hrswp-employee-recognition.php
50 lines (42 loc) · 1.36 KB
/
hrswp-employee-recognition.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
<?php
/**
* Plugin Name: HRSWP Employee Recognition
* Plugin URI: https://github.com/washingtonstateuniversity/hrswp-employee-recognition
* Update URI: https://api.github.com/repos/washingtonstateuniversity/hrswp-employee-recognition/releases/latest
* Description: WSU HRS plugin that helps to manage the employee recognition progmam.
* Version: 1.0.0-alpha.3
* Author: Adam Turner
* Author URI: https://hrs.wsu.edu/
* License: GPLv3 or later
* Text Domain: hrswp-employee-recognition
* Requires PHP: 7.3
* Requires at least: 5.9
* Tested up to: 5.9.2
*
* @package EmployeeRecognition
*/
namespace Hrswp\EmployeeRecognition;
use Hrswp\EmployeeRecognition\AwardPostType;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
register_activation_hook(
__FILE__,
function (): void {
// Add an option to check for flushing rewrite rules after activation.
add_option( 'hrswp-er-flush-rewrite-rules', true );
}
);
register_deactivation_hook(
__FILE__,
function (): void {
flush_rewrite_rules();
}
);
// Load settings and API endpoint.
require_once dirname( __FILE__ ) . '/inc/settings.php';
require_once dirname( __FILE__ ) . '/inc/api.php';
// Load class.
require_once dirname( __FILE__ ) . '/inc/classes/class-award-post-type.php';
require_once dirname( __FILE__ ) . '/inc/classes/class-er-user.php';
AwardPostType\Award_Post_Type::factory();