-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwpcampus-notifications.php
More file actions
41 lines (36 loc) · 1.2 KB
/
wpcampus-notifications.php
File metadata and controls
41 lines (36 loc) · 1.2 KB
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
<?php
/**
* Plugin Name: WPCampus: Notifications
* Plugin URI: https://github.com/wpcampus/wpcampus-notifications-plugin
* Description: Manages notifications on main WPCampus website to share with network.
* Version: 1.0.0
* Author: WPCampus
* Author URI: https://wpcampus.org
* Text Domain: wpc-notifications
* Domain Path: /languages
*
* @package WPCampus: Notifications
*/
defined( 'ABSPATH' ) or die();
/*
* Load plugin files.
*/
$plugin_dir = plugin_dir_path( __FILE__ );
// Load the main Event_Schedule class and global functionality.
require_once $plugin_dir . 'inc/wpcampus-notifications-fields.php';
require_once $plugin_dir . 'inc/class-wpcampus-notifications.php';
require_once $plugin_dir . 'inc/class-wpcampus-notifications-global.php';
// Load admin functionality in the admin.
if ( is_admin() ) {
require_once $plugin_dir . 'inc/class-wpcampus-notifications-admin.php';
}
/**
* Returns the instance of our main WPCampus_Notifications class.
*
* Use this function and class methods to retrieve plugin data.
*
* @return object - WPCampus_Notifications
*/
function wpcampus_notifications() {
return WPCampus_Notifications::instance();
}