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

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

// List of option names to delete
$options_to_delete = array(
    // General Settings
    'postology_display_powered_by',
    'postology_heading_text',
    'postology_summary_heading_text',
    'postology_number_of_bullets',
    'postology_button_text', // Added button text option
    'postology_bullet_point_length',
    'postology_summary_tone',
    'postology_summary_language',

    // Content Configuration
    'postology_selectors',
    'postology_find_elements'
);

// Delete each option from the database
foreach ($options_to_delete as $option_name) {
    delete_option($option_name);
}
