PluginProbe
AliNext – WooCommerce Dropshipping Plugin for AliExpress / trunk
AliNext – WooCommerce Dropshipping Plugin for AliExpress vtrunk
ali2woo-lite / includes / classes / controller / DebugPageController.php

DebugPageController.php in AliNext – WooCommerce Dropshipping Plugin for AliExpress trunk, at includes/classes/controller/DebugPageController.php

37 lines 748 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Description of DebugPageController
5 *
6 * @author Ali2Woo Team
7 *
8 * @autoload: a2wl_before_admin_menu
9 */
10
11 namespace AliNext_Lite;;
12
13 use Pages;
14
15 class DebugPageController extends AbstractAdminPage
16 {
17 public function __construct()
18 {
19 if (a2wl_check_defined('A2WL_DEBUG_PAGE')) {
20 parent::__construct(
21 Pages::getLabel(Pages::DEBUG),
22 Pages::getLabel(Pages::DEBUG),
23 Capability::pluginAccess(),
24 Pages::DEBUG,
25 1100
26 );
27 }
28 }
29
30 public function render($params = []): void
31 {
32 if (!PageGuardHelper::canAccessPage(Pages::DEBUG)) {
33 wp_die($this->getErrorTextNoPermissions());
34 }
35 }
36 }
37