PluginProbe
Additional Terms Lite for WooCommerce / 1.2.0
Additional Terms Lite for WooCommerce v1.2.0
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
← All changes | uninstall.php +22 -32 trunk1.2.0 View file →
@@ -1,32 +1,22 @@
1 -<?php
2 -/**
3 - * Uninstall Woo Additional Terms.
4 - * Fired when the plugin is uninstalled.
5 - *
6 - * @since 1.0.0
7 - *
8 - * @package woo-additional-terms
9 - */
10 -
11 -defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
12 -defined( 'WP_UNINSTALL_PLUGIN' ) || exit; // If uninstall not called from WordPress, then exit.
13 -
14 -// Delete the onboarding (welcome) notice preference.
15 -delete_site_option( 'woo_additional_terms_onboarding' );
16 -
17 -// Delete the already rated preference.
18 -delete_option( 'woo_additional_terms_rated' );
19 -
20 -// Reset the activation timestamp as the user already decided to delete the plugin.
21 -delete_site_option( 'woo_additional_terms_activation_timestamp' );
22 -
23 -/*
24 - * Only perform uninstall if WC_REMOVE_ALL_DATA constant is set to true in user's
25 - * wp-config.php. This is to prevent data loss when deleting the plugin from the backend
26 - * and to ensure only the site owner can perform this action.
27 - */
28 -if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
29 - delete_option( 'woo_additional_terms_options' );
30 - // For site options in Multisite.
31 - delete_site_option( 'woo_additional_terms_options' );
32 -}
1 +<?php
2 +/**
3 + * Unistall Woo Additional Terms.
4 + * Fired when the plugin is uninstalled.
5 + *
6 + * @author Mahdi Yazdani
7 + * @package Woo Additional Terms
8 + * @since 1.2.0
9 + */
10 +
11 +// If uninstall not called from WordPress, then exit.
12 +if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
13 + exit;
14 +} // End If Statement
15 +
16 +delete_option( '_woo_additional_terms_page_id' );
17 +delete_option( '_woo_additional_terms_notice' );
18 +delete_option( '_woo_additional_terms_error' );
19 +// For site options in Multisite
20 +delete_site_option( '_woo_additional_terms_page_id' );
21 +delete_site_option( '_woo_additional_terms_notice' );
22 +delete_site_option( '_woo_additional_terms_error' );