-
Notifications
You must be signed in to change notification settings - Fork 1
/
wsuwp-a11y-status.php
49 lines (42 loc) · 1.41 KB
/
wsuwp-a11y-status.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
<?php
/**
* Plugin Name: WSUWP A11y Status
* Version: 1.2.4
* Description: A plugin to view users' WSU Accessibility Training status in the Admin area.
* Author: washingtonstateuniversity, Adam Turner
* Author URI: https://github.com/washingtonstateuniversity/
* Plugin URI: https://github.com/washingtonstateuniversity/wsuwp-plugin-a11y-status
* Update URI: https://api.github.com/repos/washingtonstateuniversity/wsuwp-plugin-a11y-status/releases/latest
* Text Domain: wsuwp-a11y-status
* Requires at least: 5.7
* Tested up to: 6.4.2
* Requires PHP: 7.0
*/
namespace WSUWP\A11yStatus;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Loads the core plugin Setup class.
*
* @since 0.1.0
*/
require_once __DIR__ . '/includes/class-setup.php';
// Starts things up.
add_action( 'plugins_loaded', __NAMESPACE__ . '\load' );
// Flushes rules on activation and cleans up on deactivation.
register_activation_hook( __FILE__, array( __NAMESPACE__ . '\Init\Setup', 'activate' ) );
register_deactivation_hook( __FILE__, array( __NAMESPACE__ . '\Init\Setup', 'deactivate' ) );
register_uninstall_hook( __FILE__, array( __NAMESPACE__ . '\Init\Setup', 'uninstall' ) );
/**
* Creates an instance of the Setup class.
*
* @since 0.1.0
*
* @return Setup An instance of the Setup class.
*/
function load() {
$wsuwp_a11y_status = Init\Setup::get_instance( __FILE__ );
return $wsuwp_a11y_status;
}