| 1 |
<?php |
| 2 |
|
| 3 |
namespace DebugLogViewer; |
| 4 |
|
| 5 |
/** |
| 6 |
* Plugin Name: Debug Log Viewer |
| 7 |
* Description: Effortlessly view, search, and manage your WordPress debug.log in the admin dashboard. Real-time monitoring, email alerts, and filtering. |
| 8 |
* Author: lysyiweb |
| 9 |
* Version: 2.0.5 |
| 10 |
* Tags: wp_debug, debugging, error log, debug |
| 11 |
* Requires PHP: 7.2 |
| 12 |
* Tested up to: 6.8.1 |
| 13 |
* Stable tag: 2.0.5 |
| 14 |
* License: GPLv2 or later |
| 15 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 16 |
*/ |
| 17 |
if (!defined('ABSPATH')) { |
| 18 |
exit; |
| 19 |
} |
| 20 |
|
| 21 |
use DebugLogViewer\Admin\Helpers\Constants; |
| 22 |
use DebugLogViewer\Admin\Controllers\MenuController; |
| 23 |
use DebugLogViewer\Admin\Controllers\HooksController; |
| 24 |
use DebugLogViewer\Admin\Controllers\FreemiusController; |
| 25 |
|
| 26 |
require_once realpath(__DIR__) . '/admin/helpers/constants.php'; |
| 27 |
require_once realpath(__DIR__) . '/admin/translations/phrases.php'; |
| 28 |
|
| 29 |
foreach (Constants::CONTROLLERS_LIST as $controller) { |
| 30 |
require_once realpath(__DIR__) . "/admin/controllers/{$controller}Controller.php"; |
| 31 |
} |
| 32 |
|
| 33 |
// Initialize controllers after WordPress is fully loaded |
| 34 |
add_action('init', function () { |
| 35 |
( new MenuController() )->init(); |
| 36 |
( new HooksController() )->init(); |
| 37 |
( new FreemiusController() )->init(); |
| 38 |
}); |
| 39 |
|