<?php
namespace Wpupgrader\WordPress\Plugins\GdprConsentLite\Hooks;

use Wpupgrader\Libraries\WordPress\Plugins\Core\Hooks\Autoloader as CoreAutoloader;
use Wpupgrader\Libraries\WordPress\Plugins\Core\PluginBaseInterface;

final class Autoloader extends CoreAutoloader
{
    public function __construct(PluginBaseInterface &$plugin, $hooksPath = null, $loaderInvoker = null, array $loaderMappings = null)
    {
        parent::__construct($plugin, $hooksPath, $loaderInvoker, $loaderMappings);

        \add_action('admin_head', function() {
            \remove_meta_box('icl_div', 'gdprc_consent', 'side');
            \remove_meta_box('icl_div_config', 'gdprc_consent', 'normal');
        }, 99);
    }
}