| 1 |
<?php |
| 2 |
|
| 3 |
namespace AgeGate\Admin\Controller; |
| 4 |
|
| 5 |
use AgeGate\Common\Immutable\Constants; |
| 6 |
use AgeGate\Common\Admin\AbstractController; |
| 7 |
|
| 8 |
|
| 9 |
class TroubleShootingController extends AbstractController |
| 10 |
{ |
| 11 |
protected $template = 'troubleshooting'; |
| 12 |
|
| 13 |
public function register(): void |
| 14 |
{ |
| 15 |
$this->menu(__('Troubleshooting', 'age-gate'), Constants::ADVANCED); |
| 16 |
} |
| 17 |
|
| 18 |
protected function required(): bool |
| 19 |
{ |
| 20 |
return current_user_can(Constants::ADVANCED); |
| 21 |
} |
| 22 |
|
| 23 |
protected function data() : array |
| 24 |
{ |
| 25 |
return []; |
| 26 |
} |
| 27 |
|
| 28 |
protected function fields() : array |
| 29 |
{ |
| 30 |
return []; |
| 31 |
} |
| 32 |
} |
| 33 |
|