PluginProbe
The GDPR Framework By Data443 / 2.1.0
The GDPR Framework By Data443 v2.1.0
2.5.0 2.4.0 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.3 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.39 1.0.4 1.0.40 1.0.41 1.0.42 1.0.43 1.0.44 1.0.45 1.0.46 All 41 releases
gdpr-framework / src / Installer / InstallerWizard.php

InstallerWizard.php in The GDPR Framework By Data443 2.1.0, at src/Installer/InstallerWizard.php

39 lines 754 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Codelight\GDPR\Installer;
4
5 /**
6 * Handle the installer wizard pages
7 *
8 * Class InstallerWizard
9 *
10 * @package Codelight\GDPR\Installer
11 */
12 class InstallerWizard
13 {
14 /**
15 * InstallerWizard constructor.
16 */
17 public function __construct()
18 {
19 add_action('admin_menu', [$this, 'registerWizardPage']);
20 }
21
22 /**
23 * Register the installer page with WordPress
24 */
25 public function registerWizardPage()
26 {
27 add_dashboard_page( '', '', 'manage_options', 'gdpr-setup', '' );
28 }
29
30 /**
31 * Check if we are already on the installer page
32 *
33 * @return bool
34 */
35 public function isWizardPage()
36 {
37 return isset($_GET['page']) && 'gdpr-setup' === $_GET['page'];
38 }
39 }