-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-error-trace.php
More file actions
30 lines (23 loc) · 971 Bytes
/
wp-error-trace.php
File metadata and controls
30 lines (23 loc) · 971 Bytes
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
<?php // phpcs:ignore PSR1.Files.SideEffects.FoundWithSymbols -- WP plugin bootstrap requires both.
/**
* Plugin Name: WP Error Trace
* Plugin URI: https://github.com/Robothead-eu/wp-error-trace
* Description: View, filter, and download WordPress debug.log from the admin dashboard.
* Version: 0.1.0
* Author: Robothead
* License: GPL-2.0-or-later
* Text Domain: wp-error-trace
* Requires PHP: 8.1
*/
declare(strict_types=1);
if (! defined('ABSPATH')) {
exit;
}
define('WP_ERROR_TRACE_VERSION', '0.1.0');
define('WP_ERROR_TRACE_FILE', __FILE__);
define('WP_ERROR_TRACE_DIR', plugin_dir_path(__FILE__));
define('WP_ERROR_TRACE_URL', plugin_dir_url(__FILE__));
require_once __DIR__ . '/vendor/autoload.php';
register_activation_hook(__FILE__, [Robothead\WpErrorTrace\Plugin::class, 'activate']);
register_deactivation_hook(__FILE__, [Robothead\WpErrorTrace\Plugin::class, 'deactivate']);
Robothead\WpErrorTrace\Plugin::instance()->boot();