keys) get swept alongside classic widget ids function AdvancedSteamWidget_remove_instance_data() { //drop every scheduled event for either of our hooks wp_clear_scheduled_hook('advanced_steam_widget_update'); wp_clear_scheduled_hook('advanced_steam_widget_refresh'); //bulk-delete every transient whose name starts with our prefix, plus its timeout row global $wpdb; $prefix = ADVANCED_STEAM_WIDGET_TRANSIENT_PREFIX; $wpdb->query($wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", '_transient_' . $wpdb->esc_like($prefix) . '%', '_transient_timeout_' . $wpdb->esc_like($prefix) . '%' )); }