<?php
/**
 * MenuX Free — Uninstall
 * Removes every option and transient the plugin created.
 * Runs only when the plugin is DELETED from the Plugins screen
 * (deactivation keeps all data, so users can safely toggle the plugin).
 *
 * @package MenuX
 */

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit;

$menux_options = array(
	'menux_menu_items',
	'menux_style',
	'menux_logo',
	'menux_accessibility',
	'menux_dyn_gen',
	'menux_menu_guest',
	'menux_menu_logged',
	'menux_wp_nav_replacements',
);

foreach ( $menux_options as $menux_opt ) {
	delete_option( $menux_opt );
}

delete_transient( 'menux_css_cache' );
delete_transient( 'menux_supported_languages' );
