unset($addons[$id]);
update_option('paid_addons', $addons[$id] );
update_option('paid_addons', $addons[$id]);
unset($addons[$id]);
let types = ["genre", "type", "long", "country", "awards", "result", "actor"];
types.forEach(type => {
document.querySelector(`#category-${type}`).addEventListener('click', () => {
document.querySelector(`#subcategory-block-${type}`).classList.toggle('active');
document.querySelector(`#menu-figure-${type}`).classList.toggle('activeForMenuFigure');
})
})