-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
28 lines (24 loc) · 887 Bytes
/
plugin.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
<?php
/**
* Plugin Name: Communibase
* Description: Communibase API Support
* Version: 0.0.1
* Author: Kingsquare BV
* Author URI: https://kingsquare.nl
* Plugin URI: https://github.com/AubreyHewes/communibase-wordpress-plugin
*/
defined('ABSPATH') or die;
define('COMMUNIBASE_PLUGIN_FILE', __FILE__);
define('COMMUNIBASE_PLUGIN_DIR', trailingslashit(plugin_dir_path(__FILE__)));
define('COMMUNIBASE_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
define('COMMUNIBASE_LANG', 'communibase');
define('COMMUNIBASE_VERSION', '0.0.1');
require_once __DIR__ . '/vendor/autoload.php';
// Add Connector class to Wordpress
require_once __DIR__ . '/lib/WP_Communibase_Connector.php';
// Add Admin Settings page
if (is_admin()) {
require_once __DIR__ . '/lib/WP_Communibase_SettingsPage.php';
new WP_Communibase_SettingsPage();
}
// non-admin enqueues, actions, and filters