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'); /*