xml-feed-for-skroutz-for-woocommerce
Last commit date
admin
8 months ago
includes
8 months ago
languages
8 months ago
LICENSE.txt
1 year ago
README.txt
8 months ago
index.php
1 year ago
uninstall.php
1 year ago
wpml-config.xml
1 year ago
xml-feed-for-skroutz-for-woocommerce.php
8 months ago
uninstall.php
26 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 | as_unschedule_all_actions( 'dicha_skroutz_feed_monitor', [], 'dicha_feeds_generation' ); |
| 15 | } |
| 16 | |
| 17 | dicha_skroutz_feed_remove_plugin_options(); |
| 18 | |
| 19 | /** |
| 20 | * Deletes from database all options. |
| 21 | */ |
| 22 | function dicha_skroutz_feed_remove_plugin_options() { |
| 23 | global $wpdb; |
| 24 | $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'dicha_skroutz_feed_%'" ); |
| 25 | } |
| 26 |