Do not delete the comment. One comment could have multiple children, and moving the replies up would create a false impression in any case.
The real question here is why someone wants to delete a comment and how you could react:
- The content is obsolete or wrong: Add a note, mark it as outdated.
- The commenter disclosed something secret: Replace the comment content with a note.
- The commenter doesn’t want to be seen on the site anymore: replace the commenter name with anonymous.
In any case, I would require a reason for deletion request, and create a separate comment review queue. Use comment meta fields for that.
Related Posts:
- How does WooCommerce display a custom comment_type in Comment Admin?
- Plugin Functionality Only for Editor and Administrator
- Override comments.php template with plugin
- How to change commenter links to /user/user_id?
- How can I get WordPress to save comments in markdown format?
- Creating a plugin to sanitize comment and the url field before display only
- Add a Custom Field in Comment Box next to the Text area
- How to remove WordPress Default Comment? not Facebook
- Why do I get this “plugin does not have a valid header” error?
- Edit plugin without hooks in functions.php
- Which method is best to enqueue scripts
- WordPress Capabilities: edit_user vs edit_users
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- Is dynamic forms/entries possible in Widget?
- Is there a WordPress Plugin that allows voting “does this coupon work” on specific links like Retailmenot
- How to get posts by content?
- Don’t send notification if author comments his own post plugin help?
- Trigger a custom wordpress plugin with a linux cron
- Add_rewrite_rule doesn’t add custom url in plugin
- Force plugin to fail activation
- Extend the Admin Post/Edit page
- Unable to load stylesheets and scripts to plugin settings page
- Correct way to use register_activation_hook
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- Licensing of freemium plugin
- Way to hook into a sidebar call to replace it with a custom sidebar
- $wpdb working with ajax but showing ajax error instead of success
- How to trigger an action with a URL
- Default Plugin Settings Not Writing to Database
- Create a custom page template inside my wordpress plugin
- How to pull code snippet from functionality plugin?
- White page on custom plugin option submit
- Best approach to fetch data from wp options to js file or php file
- Is it possible to create Custom Post plug-in?
- How to add Internationalization in WordPress using Javascript/React?
- why doesn’t this update part of this plugin work? it take me to nothing here page
- creating html reusable blocks via shortcodes
- I want to auto populate data in three fields if one drop down is selected
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- Session destroyed on page redirect
- how to use in custom single.php template using php?
- How can I change the meta_key for a particular piece of information?
- Can I load the textdomain before a plugin is activated?
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- How to add custom table style for table block in gutenberg editor
- populating a form field with output from a custom plugin function
- Issues with a WP plugin menu system
- Why Does The `auto_update_plugin` Hook Disable Management?
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- Add a “View all” button on WooCommerce product archives pages
- get_comments_number() giving wrong results! What are alternatives?
- Is there a script to collect all hooks and filters provided by a plugin?
- How do I add an options page at the bottom of the list?
- Post status doesn’t update to ‘future’ every time?
- Unable to give correct path in wordpress
- Disable variations on woo commerce if out of stock
- How to add img into a plugin?
- A question of etiquette when forking a plugin? [closed]
- how to request a script more than once in wordpress
- How to log custom plugin error to debug.log file
- Error: Can´t access facebook comment plugin admin page
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- How to create admin setting for this small plugin
- How to fix caching issue in PHP data from database
- Show Custom Post on Frontend
- Adding shortcodes to multiple pages with function
- SASS not showing in customized preloader plugin
- How to securely controlling data without keeping it in postmeta?
- Get a list of Product Categories inside a loop
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Load my Inline js footer area
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Using multi-dimensional array with filter
- WordPress Admin sub-level menu issue
- PHP header() not available to use in my plugin
- wordpress ajax pagination object value does not change
- Google analytic issue in wordpress
- Custom pages with plugin
- How to insert category name above post title in a featured pages plugin?
- Displaying friend’s posts only
- What’s the preferred method of writing AJAX-enabled plugins?
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- How to add jquery to my custom post type wp plugin
- Check if user is in a group of another site within multisite network [closed]
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Redirect url in plugin to somewhere else?
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- Site is setup statically – how to make it content managable?
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Plugin version number after code rewrite [closed]
- How to escape html code?
- How can I make my plugin detect if a certain theme is active?
- Plugin Block at the backend of every page or post
- How to provide page_template path in custom plugin using WordPress