Description
Filters a comment added via the REST API after it is prepared for insertion into the database. Allows modification of the comment right after it is prepared for the database.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | 1372 |
Parameters
Type | Name | Description |
---|---|---|
array | $prepared_comment | The prepared comment data for `wp_insert_comment`. |
WP_REST_Request | $request | The current request. |
PHP Doc
/**
* Filters a comment added via the REST API after it is prepared for insertion into the database.
*
* Allows modification of the comment right after it is prepared for the database.
*
* @since 4.7.0
*
* @param array $prepared_comment The prepared comment data for `wp_insert_comment`.
* @param WP_REST_Request $request The current request.
*/