Trash comment action

This action lets you trash a comment via the WordPress integration. Use it to automate you daily work and save time and resources.

How to trash a comment

This section aims to help you getting started on how to trash a comment via WordPress. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Trash comment" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Trash comment action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
comment_id *

(int) The comment id of the comment you want to trash.

do_action

Advanced: Register a custom action after the action was fired.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Trash comment" action within our WordPress integrations. Down below you will find various examples with our other integrations.
When a comment was trashed via The WordPress Logo for our integration WordPress, trash a comment via The WordPress Logo for our integration WordPress.
When a user completed a unit via The WP Courseware Logo for our WP Webhooks integration WP Courseware, trash a comment via The WordPress Logo for our integration WordPress.
When a paid membership was activated via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, trash a comment via The WordPress Logo for our integration WordPress.
When the page cache was cleared via The WP-Optimize Logo for our WP Webhooks integration WP-Optimize, trash a comment via The WordPress Logo for our integration WordPress.
When a subscription was cancelled via The WooCommerce Subscriptions Logo for our WP Webhooks integration WooCommerce Subscriptions, trash a comment via The WordPress Logo for our integration WordPress.
When a ticket was created via The Fluent Support Logo for our WP Webhooks integration Fluent Support, trash a comment via The WordPress Logo for our integration WordPress.
When an action was fired via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, trash a comment via The WordPress Logo for our integration WordPress.
When a user password was changed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, trash a comment via The WordPress Logo for our integration WordPress.
When a booking was rejected via The Events Manager Logo for our WP Webhooks integration Events Manager, trash a comment via The WordPress Logo for our integration WordPress.
When the full cache was cleared via The Autoptimize Logo for our WP Webhooks integration Autoptimize, trash a comment via The WordPress Logo for our integration WordPress.
When a mockup comment was deleted via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, trash a comment via The WordPress Logo for our integration WordPress.
When an order was created via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, trash a comment via The WordPress Logo for our integration WordPress.
When a free membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, trash a comment via The WordPress Logo for our integration WordPress.
When a user has logged in via The WordPress Logo for our integration WordPress, trash a comment via The WordPress Logo for our integration WordPress.
When an ACF term field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, trash a comment via The WordPress Logo for our integration WordPress.
When a user logged in via The WP User Manager Logo for our WP Webhooks integration WP User Manager, trash a comment via The WordPress Logo for our integration WordPress.
When an order was deleted via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, trash a comment via The WordPress Logo for our integration WordPress.
When a tag was added to a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, trash a comment via The WordPress Logo for our integration WordPress.
When a donation was refunded via The GiveWP Logo for our WP Webhooks integration GiveWP, trash a comment via The WordPress Logo for our integration WordPress.
When a customer was deleted via The Woocommerce Logo for our integration WooCommerce, trash a comment via The WordPress Logo for our integration WordPress.
When a form was submitted via The Divi Logo for our WP Webhooks integration Divi, trash a comment via The WordPress Logo for our integration WordPress.

More available WordPress endpoints

Discover more of the available endpoints used for the WordPress integration.
To learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.