-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplugin.php
41 lines (35 loc) · 1.33 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Plugin Name: Zammad for WordPress
* Plugin URI: https://github.com/ouun/zammad-wp/
* Version: 0.9.1
* Description: Integrates Zammad Helpdesk into WordPress
* Author: Philipp Wellmer <philipp@ouun.io>
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* GitHub Plugin URI: ouun/zammad-wp
* Requires PHP: 7.2
* Text Domain: zammad-wp
* Domain Path: /languages
*
* @package ZammadWp
*/
// Useful global constants.
define('ZAMMAD_WP_VERSION', '0.9.1');
define('ZAMMAD_WP_URL', plugin_dir_url(__FILE__));
define('ZAMMAD_WP_PATH', plugin_dir_path(__FILE__));
define('ZAMMAD_WP_INC', ZAMMAD_WP_PATH . 'includes/');
// Include files.
require_once ZAMMAD_WP_INC . 'functions/core.php';
require_once ZAMMAD_WP_INC . 'functions/chat.php';
require_once ZAMMAD_WP_INC . 'functions/form.php';
require_once ZAMMAD_WP_INC . 'functions/hf-plugin-integration.php';
// Activation/Deactivation.
register_activation_hook(__FILE__, '\ZammadWp\Core\activate');
register_deactivation_hook(__FILE__, '\ZammadWp\Core\deactivate');
// Bootstrap.
ZammadWp\Core\setup();
// Require Composer autoloader if it exists.
if (file_exists(ZAMMAD_WP_PATH . '/vendor/autoload.php')) {
require_once ZAMMAD_WP_PATH . 'vendor/autoload.php';
}