PluginActiveEvents.php
3 weeks ago
PluginDeactivateEvents.php
3 weeks ago
PluginInitEvents.php
1 month ago
PluginLoadedEvents.php
3 weeks ago
PluginShortcode.php
2 months ago
TemplateRedirection.php
1 month ago
PluginDeactivateEvents.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin deactive events handler |
| 4 | * |
| 5 | * @package kirki |
| 6 | */ |
| 7 | |
| 8 | namespace Kirki\Manager; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly. |
| 12 | } |
| 13 | |
| 14 | use Kirki\HelperFunctions; |
| 15 | |
| 16 | |
| 17 | /** |
| 18 | * Do some task during plugin deactivation |
| 19 | */ |
| 20 | class PluginDeactivateEvents { |
| 21 | |
| 22 | |
| 23 | /** |
| 24 | * Initilize the class |
| 25 | * |
| 26 | * @return void |
| 27 | */ |
| 28 | public function __construct() { |
| 29 | // Flush rewrite rules on deactivation |
| 30 | flush_rewrite_rules( true ); |
| 31 | } |
| 32 | |
| 33 | } |
| 34 |