-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.php
More file actions
30 lines (24 loc) · 927 Bytes
/
Copy pathuninstall.php
File metadata and controls
30 lines (24 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
if ( ! current_user_can( 'install_plugins' ) ) {
exit;
}
require_once plugin_dir_path(__FILE__) . 'core/FastCommentsWordPressIntegration.php';
$fastcomments = new FastCommentsWordPressIntegration();
$fastcomments->removeSendCommentsLock();
delete_option( 'fastcomments_tenant_id' );
delete_option( 'fastcomments_connection_token' );
delete_option( 'fastcomments_sso_key' );
delete_option( 'fastcomments_sso_enabled' );
delete_option( 'fastcomments_setup' );
delete_option( 'fastcomments_log_level' );
delete_option( 'fastcomments_site' );
delete_option( 'fastcomments_cdn' );
delete_option( 'fastcomments_widget' );
delete_option( 'fastcomments_review_eligibility_started' );
delete_option( 'fastcomments_review_snooze_until' );
delete_option( 'fastcomments_review_dismissed' );
delete_option( 'fastcomments_review_action_taken' );
$fastcomments->deactivate();