| 1 |
<?php |
| 2 |
/** |
| 3 |
* Runs when the plugin is deleted from the Plugins screen. |
| 4 |
* |
| 5 |
* Deactivation already honours the "Remove settings" option, but a user who deletes |
| 6 |
* the plugin outright never triggers it, so the rows used to be left behind forever. |
| 7 |
* |
| 8 |
* @package FancyBox_For_WordPress |
| 9 |
* @since 3.4.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
defined( 'WP_UNINSTALL_PLUGIN' ) || exit; |
| 13 |
|
| 14 |
$mfbfw_settings = get_option( 'mfbfw' ); |
| 15 |
|
| 16 |
if ( is_array( $mfbfw_settings ) && ! empty( $mfbfw_settings['uninstall'] ) ) { |
| 17 |
delete_option( 'mfbfw' ); |
| 18 |
delete_option( 'mfbfw_active_version' ); |
| 19 |
delete_option( 'mfbfw-rate-time' ); |
| 20 |
} |
| 21 |
|