WordPress at a glance
action is not described

rest_insert_comment action-hook . WP 4.7.0

Fires after a comment is created or updated via the REST API.


add_action( 'rest_insert_comment', 'action_function_name_5123', 10, 3 );
function action_function_name_5123( $comment, $request, $creating ){
	// action...
Inserted or updated comment object.
Request object.
True when creating a comment, false when updating.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 606
do_action( 'rest_insert_comment', $comment, $request, true );
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 741
do_action( 'rest_insert_comment', $comment, $request, false );

Where the hook is used (in WP core)

Does not used.