Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | apply_filters | 1370 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $prepared_comment | The prepared comment data for `wp_insert_comment`. |
WP_REST_Request | $request | The current request. |