query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'rwfg_reviews' ) ); foreach ( array( 'rwfg_settings', 'rwfg_google_token', 'rwfg_hidden_reviews', 'rwfg_picked_reviews', 'rwfg_review_order', 'rwfg_summary', 'rwfg_db_version', 'rwfg_last_error', 'rwfg_places_error', 'rwfg_setup', 'rwfg_ai_summary', 'rwfg_sync_lock' ) as $rwfg_option ) { delete_option( $rwfg_option ); } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching -- Removes our short-lived review caches. $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_rwfg_' ) . '%', $wpdb->esc_like( '_transient_timeout_rwfg_' ) . '%' ) ); wp_clear_scheduled_hook( 'rwfg_daily_sync' );