On plugin deactivate, change update_option to delete_option

This commit is contained in:
2018-05-23 15:32:19 +02:00
parent 1f113b0b6a
commit 6c1a7aec05

View File

@@ -9,14 +9,6 @@ function fbr_deactivate_plugin(){
$fbr_opts = get_option( 'fbr_opts' );
if( $fbr_opts ){
$opts = [
'fbr_app_id' => null,
'fbr_app_secret' => null,
'fbr_page_id' => null,
'fbr_page_access_token' => null,
'fbr_ratings' => array(),
];
update_option( 'fbr_opts', $fbr_opts );
delete_option( 'fbr_opts' );
}
}