<?php
/**
 * Uninstall MP3 VPlayer
 *
 * Removes all plugin data from the database when uninstalled.
 *
 * @package mp3-vplayer
 */

// Exit if accessed directly or not uninstalling
if (!defined('WP_UNINSTALL_PLUGIN')) {
    exit;
}

// Delete plugin options
delete_option('mp3_vplayer_post_types');

// Optional: Remove all mp3_url post meta
// Uncomment the following lines if you want to remove all MP3 URLs on uninstall
/*
global $wpdb;
$wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE meta_key = 'mp3_url'");
*/

// Clear any cached data
wp_cache_flush();
?>