<?php
/**
 * Uninstall script for BW Agenda Table.
 * Runs when the plugin is deleted via WP Admin. Cleans up plugin options.
 *
 * The block stores no per-post data of its own — block attributes live in
 * post_content as serialized comments and are removed when the post is
 * deleted. We only need to scrub plugin-level options here.
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

delete_option( 'bw_agenda_table_settings' );
delete_option( 'bw_agenda_table_version' );

if ( is_multisite() ) {
	delete_site_option( 'bw_agenda_table_settings' );
}
