-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
66 lines (60 loc) · 1.37 KB
/
plugin.php
File metadata and controls
66 lines (60 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* User Action Logging
*
* @package UAL
*
* Plugin Name: User Action Logging
* Description: Log user actions within a custom post type.
* Version: 0.1
* Author: Gemma Plank <info@gpwebdevelopment.co.uk>
* Author URI: https://gpwebdevelopment.co.uk
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: ual
* Domain Path: /languages
*/
/**
* Abort on Direct Call
*
* Abort if this file is called directly.
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Constants.
*/
define( 'UAL_ROOT', __FILE__ );
define( 'UAL_NAME', 'User Action Logging' );
define( 'UAL_SLUG', 'user-action-logging' );
define( 'UAL_PREFIX', 'ual_' );
define( 'UAL_MIN_PHP_VERSION', '5.6' );
/**
* Classes.
*/
require_once 'php/class-activity-cpt.php';
require_once 'php/class-activity-actions.php';
require_once 'php/class-activity-logging.php';
require_once 'php/class-activity-helpers.php';
/**
* Namespaces.
*/
use UAL\Activity_Cpt;
use UAL\Activity_Actions;
use UAL\Action_Log;
use UAL\Helpers;
/**
* Instances.
*/
$activity_cpt = new Activity_Cpt();
$activity_actions = new Activity_Actions();
$action_log = new Action_Log();
$helpers = new Helpers();
/**
* Run!
*/
$activity_cpt->run();
$activity_actions->run();
$action_log->run();
$helpers->run();