This commit is contained in:
Javier Casares 2026-10-12 11:55:23 +00:00
commit 06153e387d
47 changed files with 5116 additions and 0 deletions

18
uninstall.php Normal file
View file

@ -0,0 +1,18 @@
<?php
/**
* Uninstall cleanup for Font del Bosc — El Temps.
*
* 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 ~25 hours).
*
* @package FontdelboscEltemps
*/
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
$fontdelbosc_options = get_option( 'fontdelbosc_options' );
if ( is_array( $fontdelbosc_options ) && ! empty( $fontdelbosc_options['delete_data_on_uninstall'] ) ) {
delete_option( 'fontdelbosc_options' );
}