PluginProbe
Debug Log Manager Tool / trunk
Debug Log Manager Tool vtrunk
3.0.7 3.0.6 3.0.5 3.0.3 3.0.4 3.0.2 trunk 1.0.0 1.0.2 1.2 1.3 1.4 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.3 1.5.3.2 2.0.0 2.0.1 3.0.0 3.0.1 All 26 releases
debug-log-config-tool / plugin.php

plugin.php in Debug Log Manager Tool trunk, at plugin.php

48 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 *
5 * Plugin Name: Debug Log Manager Tool
6 * Plugin URI: https://nkb-bd.github.io/
7 * Description: Debug & Query log Helper tool with additional CLI like tools
8 * Version: 3.0.7
9 * Requires at least: 6.0
10 * Requires PHP: 7.4
11 * Tested up to: 7.0
12 * Author: Lukman Nakib
13 * Author URI: https://nkb-bd.github.io/
14 * License: GPL-2.0+
15 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
16 * Text Domain: debug-log-config-tool
17 */
18
19
20 use DebugLogConfigTool\Classes\DLCT_Bootstrap;
21
22 if (!defined('ABSPATH')) {
23 exit;
24 }
25 define('DLCT_PLUGIN_URL', plugin_dir_url(__FILE__));
26 define('DLCT_PLUGIN_VERSION', '3.0.7');
27 define('DLCT_PLUGIN_MAIN_FILE', __FILE__);
28 define('DLCT_PLUGIN_BASENAME', plugin_basename(__FILE__));
29 define('DLCT_PLUGIN_DIR', plugin_dir_path(__FILE__));
30
31 include dirname( __FILE__ ) . '/autoload.php';
32 add_action('init', function () {
33 $dlct_bootstrap = DLCT_Bootstrap::getInstance();
34 $dlct_bootstrap->init();
35 }, 10, 1);
36 register_activation_hook(DLCT_PLUGIN_MAIN_FILE, function () {
37 DLCT_Bootstrap::activate();
38 });
39
40 register_deactivation_hook(DLCT_PLUGIN_MAIN_FILE, function () {
41 DLCT_Bootstrap::deactivate();
42 });
43
44
45 add_action('shutdown', function (){
46 \DebugLogConfigTool\Controllers\LogController::maybeCacheQueries();
47 });
48