-
Notifications
You must be signed in to change notification settings - Fork 0
/
orbisius-support-tickets-addon-attachments.php
37 lines (33 loc) · 1.75 KB
/
orbisius-support-tickets-addon-attachments.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
<?php
/*
Plugin Name: Orbisius Support Tickets Attachments Addon
Plugin URI: https://orbisius.com/products/wordpress-plugins/orbisius-support-tickets
Description: Minimalistic support ticket system that enables you to start providing awesome support in 2 minutes.
Version: 1.0.0
Author: Svetoslav Marinov (Slavi) | Orbisius.com
Author URI: https://orbisius.com
Text Domain: orbisius_support_tickets_attachments_addon
Domain Path: /lang
*/
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_BASE_PLUGIN", __FILE__);
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_BASE_DIR", dirname(__FILE__));
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_BASE_URL", plugins_url('', ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_BASE_PLUGIN));
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_VERSION", "1.0.0");
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_TX_DOMAIN", "orbisius_support_tickets_attachments_addon");
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_FILES_SUBDIR", "/.ht_orbisius-support-tickets/files/");
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_FILES_DIR", WP_CONTENT_DIR . ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_FILES_SUBDIR);
define("ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_FILES_URL", WP_CONTENT_URL . ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_FILES_SUBDIR);
/**
* Plugin init. Check is Orbisius_Support_Tickets is active.
*
* @since 1.0.0
*/
function ost_aa_init() {
if (class_exists('Orbisius_Support_Tickets_Module_Core_CPT')) {
$includes = glob(ORBISIUS_SUPPORT_TICKETS_ATTACHMENTS_ADDON_BASE_DIR . '/include/*.php');
foreach ($includes as $include_file) {
require_once( $include_file );
}
}
}
add_action('plugins_loaded', 'ost_aa_init');