<?php
/**
 * Uninstall routine for TechDex Client Post Preview.
 *
 * @package TechDexClientPostPreview
 */

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

$techdex_client_post_preview_meta_keys = [
    '_cpp_token',
    '_cpp_token_hash',
    '_cpp_expires_at',
    '_cpp_created_at',
    '_cpp_created_by',
    '_cpp_links',
];

foreach ($techdex_client_post_preview_meta_keys as $techdex_client_post_preview_meta_key) {
    delete_post_meta_by_key($techdex_client_post_preview_meta_key);
}

delete_option('cpp_default_expiration_days');
