/**
 * Load Admin JS and CSS
 *  
 * @ Since 1.0.0
 * @ Updated 1.2.3
 */
function APTFINbyTAP_admin_widget_script($hook)
{
    $bot = new PhotoTileForInstagramBot();
    // Bot needed to clean cache
    wp_register_script($bot->get_private('ajs'), $bot->get_script('admin'), '', $bot->get_private('ver'));
    wp_register_style($bot->get_private('acss'), $bot->get_style('admin'), '', $bot->get_private('ver'));
    $bot->do_alpine_method('register_style_and_script');
    // Register widget styles and scripts
    if ('widgets.php' != $hook) {
        return;
    }
    wp_enqueue_script('jquery');
    wp_enqueue_script($bot->get_private('ajs'));
    wp_enqueue_style($bot->get_private('acss'));
    add_action('admin_print_footer_scripts', 'APTFINbyTAP_menu_toggles');
    // Only admin can trigger two week cache cleaning by visiting widgets.php
    $disablecache = $bot->get_option('cache_disable');
    if (empty($disablecache)) {
        $bot->do_alpine_method('cleanCache');
    }
}