Skip to content

Commit

Permalink
added - admin class structure
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveJonesDev committed Nov 19, 2023
1 parent f019d56 commit cbf01a7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions admin/admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Class file for the Accessibility New Window Warnings plugin.
*
* @package ANWW
*/

namespace EqualizeDigital\ANWW\Admin;

/**
* Admin handling class.
*/
class Admin {

/**
* Class constructor.
*/
public function __construct() {
$this->setup_actions();
}

/**
* Sets up hooks for admin actions.
*/
public function setup_actions() {
}

}
6 changes: 6 additions & 0 deletions inc/AccessibilityNewWindowWarnings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace EqualizeDigital\ANWW\Inc;

use EqualizeDigital\ANWW\Admin\Admin;

/**
* AccessibilityNewWindowWarnings Class
*
Expand All @@ -21,6 +23,10 @@ class AccessibilityNewWindowWarnings {
*/
public function __construct() {
$this->setup_actions();

if ( \is_admin() ) {
new Admin();
}
}

/**
Expand Down

0 comments on commit cbf01a7

Please sign in to comment.