# polylang/trunk/src/install/deactivate.php

Polylang, version trunk. 28 lines.

- Page: https://pluginprobe.com/plugins/polylang/trunk/code/src/install/deactivate.php
- Raw: https://pluginprobe.com/plugins/polylang/trunk/raw/src/install/deactivate.php
- Modified: 2026-02-23T14:05:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/polylang/trunk/code/src/install/deactivate.php#L10-L20`.

```php
<?php
/**
 * @package Polylang
 *
 * /!\ THE CONSTANTS `POLYLANG_BASENAME` AND `POLYLANG_VERSION` MUST BE DEFINED.
 */

/**
 * Deactivation class compatible with multisite.
 *
 * @since 3.8
 */
class PLL_Deactivate extends PLL_Abstract_Deactivate {
	/**
	 * The process to run on plugin deactivation.
	 *
	 * @since 0.5
	 * @since 3.8 Moved from the class `PLL_Install`.
	 *            Renamed from `_deactivate()`.
	 *            Made it `static`.
	 *
	 * @return void
	 */
	protected static function process(): void {
		delete_option( 'rewrite_rules' ); // Don't use flush_rewrite_rules at network activation. See #32471.
	}
}

```
