Passed
Push — master ( 0ea9fe...8403c0 )
by
unknown
08:02
created

monsterinsights_uninstall_remove_options()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 10
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 19
rs 9.9332
1
<?php
2
3
/**
4
 * Remove various options used in the plugin.
5
 */
6
function monsterinsights_uninstall_remove_options() {
7
8
	// Remove usage tracking options.
9
	delete_option( 'monsterinsights_usage_tracking_config' );
10
	delete_option( 'monsterinsights_usage_tracking_last_checkin' );
11
12
	// Remove version options.
13
	delete_option( 'monsterinsights_db_version' );
14
	delete_option( 'monsterinsights_version_upgraded_from' );
15
16
	// Remove other options used for display.
17
	delete_option( 'monsterinsights_email_summaries_infoblocks_sent' );
18
	delete_option( 'monsterinsights_float_bar_hidden' );
19
	delete_option( 'monsterinsights_frontend_tracking_notice_viewed' );
20
	delete_option( 'monsterinsights_admin_menu_tooltip' );
21
	delete_option( 'monsterinsights_review' );
22
23
	// Delete addons transient.
24
	delete_transient( 'monsterinsights_addons' );
25
26
}
27