PluginProbe
Pushly / trunk
Pushly vtrunk
2.4.0 2.3.0 trunk 1.0 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1
pushly / uninstall.php

uninstall.php in Pushly trunk, at uninstall.php

21 lines 497 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Pushly plugin uninstall handler.
4 *
5 * Drops the custom activity log table and removes all plugin settings.
6 * This is a full uninstall — if the user re-installs, they start from a clean slate.
7 */
8
9 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
10 exit;
11 }
12
13 require_once __DIR__ . '/vendor/autoload.php';
14
15 // Drop the custom activity log table.
16 $pushly_log_store = new \Pushly\Admin\LogStore();
17 $pushly_log_store->drop_table();
18
19 // Remove all plugin settings.
20 delete_option( 'pushly' );
21