forked from ubc/ccel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubc-ccel.php
39 lines (33 loc) · 1.25 KB
/
ubc-ccel.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
<?php
/**
* Plugin Name: UBC CCEL
* Plugin URI: https://github.com/ubc/ccel
* Description: The plugin powers the CCEL project with lesson, learning outcome and theme custom post types. Create block templates for each custom post types. Create filtering system to optimize the user experience to find what user needs.
* Version: 2.0.2
* Author: Samantha Tseng, Richard Tape, Kelvin Xu
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: ubc-ccel
*
* @package ubc_ccel
*/
namespace UBC\CCEL;
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
define( 'UBC_CCEL_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'UBC_CCEL_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'UBC_CCEL_BLOCKPATTERNS_NAMESPACE', 'ccel' );
/**
* Plugin initialization
*
* @return void
*/
function init() {
require_once UBC_CCEL_PLUGIN_DIR . 'includes/class-ccel-core.php';
require_once UBC_CCEL_PLUGIN_DIR . 'includes/class-ccel-block-pattern.php';
require_once UBC_CCEL_PLUGIN_DIR . 'includes/class-ccel-block.php';
require_once UBC_CCEL_PLUGIN_DIR . 'includes/class-ccel-api.php';
}
add_action( 'plugin_loaded', __NAMESPACE__ . '\\init' );