From cbf01a774ffdc4a74a721bd233fcaa146c2d41f8 Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Sat, 18 Nov 2023 23:40:28 -0500 Subject: [PATCH] added - admin class structure --- admin/admin.php | 28 ++++++++++++++++++++++++++ inc/AccessibilityNewWindowWarnings.php | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 admin/admin.php diff --git a/admin/admin.php b/admin/admin.php new file mode 100644 index 0000000..b67d6b5 --- /dev/null +++ b/admin/admin.php @@ -0,0 +1,28 @@ +setup_actions(); + } + + /** + * Sets up hooks for admin actions. + */ + public function setup_actions() { + } + +} diff --git a/inc/AccessibilityNewWindowWarnings.php b/inc/AccessibilityNewWindowWarnings.php index a6b7843..1b649e5 100644 --- a/inc/AccessibilityNewWindowWarnings.php +++ b/inc/AccessibilityNewWindowWarnings.php @@ -7,6 +7,8 @@ namespace EqualizeDigital\ANWW\Inc; +use EqualizeDigital\ANWW\Admin\Admin; + /** * AccessibilityNewWindowWarnings Class * @@ -21,6 +23,10 @@ class AccessibilityNewWindowWarnings { */ public function __construct() { $this->setup_actions(); + + if ( \is_admin() ) { + new Admin(); + } } /**