From d005f549bf681df8e4bff1c593c8016d82b7e1ed Mon Sep 17 00:00:00 2001 From: Steve Ross Date: Fri, 19 Dec 2025 12:28:59 +0000 Subject: [PATCH] move restAPI class to utilities --- app/{API/Admin.php => Utilities/RestAPI.php} | 12 +++++++----- functions.php | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) rename app/{API/Admin.php => Utilities/RestAPI.php} (78%) diff --git a/app/API/Admin.php b/app/Utilities/RestAPI.php similarity index 78% rename from app/API/Admin.php rename to app/Utilities/RestAPI.php index 37c10a0..406538c 100644 --- a/app/API/Admin.php +++ b/app/Utilities/RestAPI.php @@ -1,8 +1,8 @@ 'GET', - 'callback' => [ $this, 'container_width'], + 'callback' => [ $this, 'containerWidths'], 'permission_callback' => function(){ return true; }, ]); } - public function container_width() + public function containerWidths() { $containerWidths = [ [ 'label' => __('Auto', 'badegg'), 'value' => 0 ], diff --git a/functions.php b/functions.php index 9fade9c..bd0bfd7 100644 --- a/functions.php +++ b/functions.php @@ -57,7 +57,6 @@ autoload_psr4('PostTypes'); autoload_psr4('ACF'); autoload_psr4('Utilities'); autoload_psr4('Admin'); -autoload_psr4('API'); /*