get_col( $wpdb->prepare( "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE %s", $wpdb->esc_like( 'taxvoice_lock_' ) . '%' ) ); foreach ( $names as $name ) { delete_option( $name ); } Taxvoice_Storage::delete_all(); } if ( is_multisite() ) { foreach ( get_sites( array( 'fields' => 'ids' ) ) as $taxvoice_site ) { switch_to_blog( $taxvoice_site ); taxvoice_uninstall_site(); restore_current_blog(); } } else { taxvoice_uninstall_site(); } // Dismissed setup reminder (user meta is shared by all sites of a network). delete_metadata( 'user', 0, 'taxvoice_setup_notice_dismissed', '', true );