-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwsu-people-directory.php
111 lines (98 loc) · 2.48 KB
/
wsu-people-directory.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/*
Plugin Name: WSU People Directory
Plugin URI: https://web.wsu.edu/wordpress/plugins/wsu-people-directory/
Description: A plugin to maintain a central directory of people.
Author: washingtonstateuniversity, CAHNRS, philcable, danialbleile, jeremyfelt
Version: 1.0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Flush rewrite rules on deactivation.
register_deactivation_hook( __FILE__, 'flush_rewrite_rules' );
// The core plugin class.
require dirname( __FILE__ ) . '/includes/class-wsuwp-people-directory.php';
add_action( 'after_setup_theme', 'WSUWP_People_Directory' );
/**
* Start things up.
*
* @return \WSUWP_People_Directory
*/
function WSUWP_People_Directory() {
return WSUWP_People_Directory::get_instance();
}
/**
* Retrieve the instance of the WSU People post type and meta data handler.
*
* @since 0.3.0
*
* @return WSUWP_People_Post_Type
*/
function WSUWP_People_Post_Type() {
return WSUWP_People_Post_Type::get_instance();
}
/**
* Retrieve the instance of the WSU People Classification taxonomy.
*
* @since 0.3.0
*
* @return WSUWP_People_Classification_Taxonomy
*/
function WSUWP_People_Classification_Taxonomy() {
return WSUWP_People_Classification_Taxonomy::get_instance();
}
/**
* Retrieve the instance of the WSU People REST API handler.
*
* @since 0.3.0
*
* @return WSUWP_People_REST_API
*/
function WSUWP_People_REST_API() {
return WSUWP_People_REST_API::get_instance();
}
/**
* Retrieve the instance of the People Directory page template.
*
* @since 0.3.0
*
* @return WSUWP_People_Directory_Page_Template
*/
function WSUWP_People_Directory_Page_Template() {
return WSUWP_People_Directory_Page_Template::get_instance();
}
/**
* Retrieve the instance of the Person Display handler.
*
* @since 0.3.0
*
* @return WSUWP_Person_Display
*/
function WSUWP_Person_Display() {
return WSUWP_Person_Display::get_instance();
}
/**
* Retrieve the instance of the person card shortcode.
*
* @since 0.3.0
*
* @return WSUWP_Person_Card_Shortcode
*/
function WSUWP_Person_Card_Shortcode() {
return WSUWP_Person_Card_Shortcode::get_instance();
}
/**
* Retrieve the instance of the user profile handler.
*
* @since 0.3.0
*
* @return WSUWP_People_User_Profile
*/
function WSUWP_People_User_Profile() {
return WSUWP_People_User_Profile::get_instance();
}
require_once __DIR__ . '/includes/class-wsuwp-people-area-of-focus-taxonomy.php';