<?php

use Dolphy\Plugin\Ajax\Action;
use Dolphy\Plugin\Ajax\Response;
use Dolphy\Plugin\Exceptions\Exception;
use Dolphy\Plugin\Helpers\AdminPage;

defined('DOLPHY_PLUGIN') or die('Access Denied!');

Action::addAccount('get', 'tabs', function () {
  $name = sanitize_key($_GET['page']);
  $menu = apply_filters('dolphy_admin_tabs', array(), $name);
  Response::send($menu);
});
