leave(); } delete_option( ShowBits\WordPress\Options::SETTINGS ); delete_option( ShowBits\WordPress\Options::CONNECTION ); delete_transient( 'showbits_status' ); delete_transient( 'showbits_pairing' ); wp_clear_scheduled_hook( 'showbits_process_imports' ); ShowBits\WordPress\Imports::drop(); // Locks of imports whose request died (a connect attempt's pairing value ends by itself within ten minutes). global $wpdb; $wpdb->query( $wpdb->prepare( 'DELETE FROM %i WHERE option_name LIKE %s', $wpdb->options, $wpdb->esc_like( 'showbits_lock_' ) . '%' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- the plugin's own leftovers, once