PluginProbe ʕ •ᴥ•ʔ
XML Feed for Skroutz & BestPrice for WooCommerce / 1.0.3
XML Feed for Skroutz & BestPrice for WooCommerce v1.0.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.3 1.2.4
xml-feed-for-skroutz-for-woocommerce / uninstall.php
xml-feed-for-skroutz-for-woocommerce Last commit date
admin 1 year ago includes 1 year ago languages 1 year ago LICENSE.txt 1 year ago README.txt 1 year ago index.php 1 year ago uninstall.php 1 year ago xml-feed-for-skroutz-for-woocommerce.php 1 year ago
uninstall.php
25 lines
1 <?php
2
3 /**
4 * Fired when the plugin is uninstalled.
5 */
6
7 // If uninstall not called from WordPress, then exit.
8 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
9 exit;
10 }
11
12 if ( function_exists( 'as_unschedule_all_actions' ) ) {
13 as_unschedule_all_actions( 'dicha_skroutz_feed_generation', [], 'dicha_feeds_generation' );
14 }
15
16 dicha_skroutz_feed_remove_plugin_options();
17
18 /**
19 * Deletes from database all options.
20 */
21 function dicha_skroutz_feed_remove_plugin_options() {
22 global $wpdb;
23 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'dicha_skroutz_feed_%'" );
24 }
25