uninstall.php in WooSwipe WooCommerce Gallery trunk, at uninstall.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Fired when the plugin is uninstalled. |
| 5 | * |
| 6 | * Removes plugin options from the database. Does not remove product media. |
| 7 | * |
| 8 | * @link https://thriveweb.com.au/ |
| 9 | * @since 1.0.0 |
| 10 | * |
| 11 | * @package Wooswipe |
| 12 | */ |
| 13 | |
| 14 | // If uninstall not called from WordPress, then exit. |
| 15 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 16 | exit; |
| 17 | } |
| 18 | |
| 19 | delete_option( 'wooswipe_options' ); |
| 20 | |
| 21 | if ( is_multisite() ) { |
| 22 | delete_site_option( 'wooswipe_options' ); |
| 23 | } |
| 24 |