Deka Comment Thread Organizer

Description

Deka Comment Thread Organizer provides a fast, visual workspace under Comments > Comment Organizer to restructure conversation threads on any public post, page, or custom post type (excluding attachments).

Whether you are cleaning up misthreaded discussions, rescuing replies whose parent comments were deleted, or merging standalone comments into an existing thread, everything happens smoothly with instant visual updates and zero page reloads.

Key Features

  • Visual Drag & Drop Threading: Drag any comment card and drop it onto another comment to nest it as a child reply, or drop onto the main canvas to promote it to a top-level comment.
  • Instant Optimistic UI Updates: Changes reflect immediately in the hierarchy tree with clear L-shaped connector lines and depth badges while saving asynchronously in the background.
  • Orphaned Comment Rescue: Automatically detects broken replies whose parent comment no longer exists, keeps their child replies visible, and lets you re-attach or promote them with one click.
  • Standalone Comment Triage: Lists childless top-level comments in a sticky sidebar with quick filters (All, Missing Parent, No Children).
  • AJAX Post Search: Powered by Select2 AJAX search so sites with thousands of posts load instantaneously.
  • Built-in Cycle Prevention & Security: Prevents infinite parent-child loops on both client and server sides, protected by WordPress nonces and moderate_comments / edit_comment capability checks.

Third-Party Libraries

This plugin bundles the following open-source library locally (no external CDN requests):

  • Select2 (v4.2.0)
    • Source: https://github.com/select2/select2
    • License: MIT License (https://github.com/select2/select2/blob/develop/LICENSE.md)

Screenshots

Installation

  1. Upload the deka-comment-thread-organizer folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress Plugins > Add New screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Navigate to Comments > Comment Organizer in your WordPress admin dashboard.
  4. Search and select a post from the dropdown to start organizing its comments.

FAQ

Does this plugin modify any custom database tables?

No. It strictly uses standard WordPress core comment functions (wp_update_comment(), wp_delete_comment(), and get_comments()) to update the native comment_parent field.

What happens if I deactivate or uninstall the plugin?

Your organized comment hierarchy remains completely intact because all parent-child relationships are stored natively in WordPress’s wp_comments table.

Can I organize comments on Custom Post Types and Pages?

Yes. Any public post type (Posts, Pages, and Custom Post Types excluding attachments) is searchable and supported.

Does it show unapproved or pending comments?

Yes. All comment statuses (approved, hold/pending, spam, trash) on the selected post are displayed with clear status badges so you can organize threads before approving them.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Deka Comment Thread Organizer” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release.
  • Added drag-and-drop comment hierarchy tree with L-shaped visual connectors.
  • Added sticky triage sidebar for orphaned and standalone comments.
  • Added AJAX-powered post selector and instant optimistic UI updates.