This commit is contained in:
Javier Casares 2026-10-12 13:25:09 +00:00
commit e1f5a47c96
22 changed files with 3155 additions and 0 deletions

22
uninstall.php Normal file
View file

@ -0,0 +1,22 @@
<?php
/**
* Uninstall cleanup for Font del Bosc — Combustible.
*
* Plugin data is preserved by default. It is only removed when the
* "Delete all plugin data on uninstall" option was explicitly enabled.
* Transients are not purged here: they expire on their own (within ~7 days).
*
* @package FontdelboscCombustible
*/
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
$fontdelbosc_combustible_options = get_option( 'fontdelbosc_combustible_options' );
if ( is_array( $fontdelbosc_combustible_options ) && ! empty( $fontdelbosc_combustible_options['delete_data_on_uninstall'] ) ) {
delete_option( 'fontdelbosc_combustible_options' );
delete_option( 'fontdelbosc_combustible_status' );
delete_transient( 'fontdelbosc_combustible_province_08' );
delete_transient( 'fontdelbosc_combustible_province_08_stale' );
delete_transient( 'fontdelbosc_combustible_products' );
}