PluginProbe
MakeCommerce for WooCommerce / 3.0.10
MakeCommerce for WooCommerce v3.0.10
4.1.0 4.0.8 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.2 All 96 releases
makecommerce / includes / deactivator.php

deactivator.php in MakeCommerce for WooCommerce 3.0.10, at includes/deactivator.php

46 lines 869 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Fired during plugin deactivation
5 *
6 * @link https://makecommerce.net/
7 * @since 3.0.0
8 *
9 * @package Makecommerce
10 * @subpackage Makecommerce/includes
11 */
12
13 namespace MakeCommerce;
14
15 /**
16 * Fired during plugin deactivation.
17 *
18 * This class defines all code necessary to run during the plugin's deactivation.
19 *
20 * @since 3.0.0
21 * @package Makecommerce
22 * @subpackage Makecommerce/includes
23 * @author Maksekeskus AS <support@maksekeskus.ee>
24 */
25 class Deactivator {
26
27 /**
28 * Short Description. (use period)
29 *
30 * Long Description.
31 *
32 * @since 3.0.0
33 */
34 public static function deactivate() {
35
36 //deactivate
37 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
38
39 //remove cronjobs
40 if ( wp_next_scheduled( 'mc_banklinks_update_cron' ) ) {
41
42 wp_clear_scheduled_hook( 'mc_banklinks_update_cron' );
43 }
44 }
45 }
46