PluginProbe
APCu Manager / trunk
APCu Manager vtrunk
4.6.0 4.6.1 4.5.4 4.5.2 4.5.3 4.5.1 trunk 1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.4.1 2.5.0 2.6.0 3.0.0 3.0.1 3.1.0 All 49 releases
apcu-manager / includes / plugin / class-deactivator.php

class-deactivator.php in APCu Manager trunk, at includes/plugin/class-deactivator.php

39 lines 679 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin deactivation handling.
4 *
5 * @package Plugin
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 1.0.0
8 */
9
10 namespace APCuManager\Plugin;
11
12 use APCuManager\System\Option;
13 use APCuManager\System\APCu;
14
15 /**
16 * Fired during plugin deactivation.
17 *
18 * This class defines all code necessary to run during the plugin's deactivation.
19 *
20 * @package Plugin
21 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
22 * @since 1.0.0
23 */
24 class Deactivator {
25
26
27 /**
28 * Deactivate the plugin.
29 *
30 * @since 1.0.0
31 */
32 public static function deactivate() {
33 Option::network_set( 'earlyloading', false );
34 apcm_reset_earlyloading();
35 APCu::reset();
36 }
37
38 }
39