<?php
/**
 * Fired when the plugin is uninstalled.
 *
 * @package TextToPDF
 */

// If uninstall not called from WordPress, then exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

// Delete options from options table.
delete_option( 'texttopdf_settings' );

// Clean up per-post download count meta.
// Using delete_metadata to avoid direct DB queries.
delete_metadata( 'post', 0, 'texttopdf_download_count', '', true );
