PluginProbe
Polylang / 3.8.4
Polylang v3.8.4
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / install / deactivate.php

deactivate.php in Polylang 3.8.4, at src/install/deactivate.php

28 lines 629 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Polylang
4 *
5 * /!\ THE CONSTANTS `POLYLANG_BASENAME` AND `POLYLANG_VERSION` MUST BE DEFINED.
6 */
7
8 /**
9 * Deactivation class compatible with multisite.
10 *
11 * @since 3.8
12 */
13 class PLL_Deactivate extends PLL_Abstract_Deactivate {
14 /**
15 * The process to run on plugin deactivation.
16 *
17 * @since 0.5
18 * @since 3.8 Moved from the class `PLL_Install`.
19 * Renamed from `_deactivate()`.
20 * Made it `static`.
21 *
22 * @return void
23 */
24 protected static function process(): void {
25 delete_option( 'rewrite_rules' ); // Don't use flush_rewrite_rules at network activation. See #32471.
26 }
27 }
28