-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathonelogs.php
More file actions
74 lines (63 loc) · 1.69 KB
/
Copy pathonelogs.php
File metadata and controls
74 lines (63 loc) · 1.69 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
67
68
69
70
71
72
73
74
<?php
/**
* OneLogs
*
* @package OneLogs
* @author rtCamp
* @copyright 2025 rtCamp
* @license GPL-2.0-or-later
*
* Plugin Name: OneLogs
* Plugin URI: https://github.com/rtCamp/onelogs
* Description: Provides a unified activity log dashboard across OnePress connected sites, extending Stream to display logs from governing and brand sites in one place.
* Author: rtCamp
* Author URI: https://rtcamp.com
* Update URI: https://github.com/rtCamp/onelogs
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: onelogs
* Domain Path: /languages
* Version: 1.0.3
* Requires PHP: 8.2
* Requires at least: 6.8
* Tested up to: 6.9
*/
declare( strict_types = 1 );
namespace OneLogs;
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
/**
* Define the plugin constants.
*/
function constants(): void {
/**
* File path to the plugin's main file.
*/
define( 'ONELOGS_FILE', __FILE__ );
/**
* Version of the plugin.
*/
define( 'ONELOGS_VERSION', '1.0.3' );
/**
* Root path to the plugin directory.
*/
define( 'ONELOGS_DIR', plugin_dir_path( __FILE__ ) );
/**
* Root URL to the plugin directory.
*/
define( 'ONELOGS_URL', plugin_dir_url( __FILE__ ) );
/**
* Plugin basename.
*/
define( 'ONELOGS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
}
constants();
// If autoloader fails, we cannot proceed.
require_once __DIR__ . '/inc/Autoloader.php';
if ( ! \OneLogs\Autoloader::autoload() ) {
return;
}
// Load the plugin.
if ( class_exists( '\OneLogs\Main' ) ) {
\OneLogs\Main::instance();
}