PluginProbe
FancyBox for WordPress / trunk
FancyBox for WordPress vtrunk
3.4.1 3.4.2 trunk 1.0 1.0.2 1.1 1.2 1.3 2.0 2.1 2.1.1 2.2 2.5 2.5.1 2.6.0 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 3.0.0 3.0.1 3.0.10 3.0.14 All 62 releases
fancybox-for-wordpress / uninstall.php

uninstall.php in FancyBox for WordPress trunk, at uninstall.php

21 lines 576 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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