<?php
/**
 * Admin initializer.
 *
 * @package PrimeLink
 */

namespace PrimeLink\Core\Admin;

use PrimeLink\Core\Ajax\ImportAjax;

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

final class Admin {

    public static function init() {
        if ( ! is_admin() ) {
            return;
        }

        // Register AJAX handlers
        ImportAjax::register();

        Menu::register();
        Assets::register();
        ActivationWizard::init();
        \PrimeLink\Core\Admin\DashboardWidgets::register();

        do_action( 'mt_primelink_admin_init' );
    }
}