rest_preprocess_comment

Advertisement

Summery Summery

Filters a comment after it is prepared for the database.

Syntax Syntax

apply_filters( 'rest_preprocess_comment', array $prepared_comment, WP_REST_Request $request )

Description Description

Allows modification of the comment right after it is prepared for the database.

Parameters Parameters

$prepared_comment

The prepared comment data for wp_insert_comment.

$request

The current request.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply