Action hook 'rest_delete_comment'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php at line 1025

Description

Fires after a comment is deleted via the REST API.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 1025

Parameters

Type Name Description
WP_Comment $comment The deleted comment data.
WP_REST_Response $response The response returned from the API.
WP_REST_Request $request The request sent to the API.

PHP Doc

/**
		 * Fires after a comment is deleted via the REST API.
		 *
		 * @since 4.7.0
		 *
		 * @param WP_Comment       $comment  The deleted comment data.
		 * @param WP_REST_Response $response The response returned from the API.
		 * @param WP_REST_Request  $request  The request sent to the API.
		 */