diff --git a/web/app/themes/badegg/app/API/Admin.php b/web/app/themes/badegg/app/Utilities/RestAPI.php similarity index 78% rename from web/app/themes/badegg/app/API/Admin.php rename to web/app/themes/badegg/app/Utilities/RestAPI.php index 37c10a0..406538c 100644 --- a/web/app/themes/badegg/app/API/Admin.php +++ b/web/app/themes/badegg/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/web/app/themes/badegg/functions.php b/web/app/themes/badegg/functions.php index 9fade9c..bd0bfd7 100644 --- a/web/app/themes/badegg/functions.php +++ b/web/app/themes/badegg/functions.php @@ -57,7 +57,6 @@ autoload_psr4('PostTypes'); autoload_psr4('ACF'); autoload_psr4('Utilities'); autoload_psr4('Admin'); -autoload_psr4('API'); /*