Checks a comment author email for validity.
WP_REST_Comments_Controller::check_edit_permission
Checks if a comment can be edited or deleted.
WP_REST_Comments_Controller::check_read_permission
Checks if the comment can be read.
WP_REST_Comments_Controller::check_read_post_permission
Checks if the post can be read.
Advertisement
rest_comment_collection_params
Filter collection parameters for the comments controller.
WP_REST_Comments_Controller::handle_status_param
Sets the comment_status of a given comment object when creating or updating a comment.
WP_REST_Comments_Controller::get_collection_params
Retrieves the query params for collections.
WP_REST_Comments_Controller::get_item_schema
Retrieves the comment’s schema, conforming to JSON Schema.
Advertisement
rest_preprocess_comment
Filters a comment after it is prepared for the database.
WP_REST_Comments_Controller::prepare_item_for_database
Prepares a single comment to be inserted into the database.
WP_REST_Comments_Controller::prepare_status_response
Checks comment_approved to set comment status for single comment output.
WP_REST_Comments_Controller::prepare_links
Prepares links for the request.
Advertisement
WP_REST_Comments_Controller::normalize_query_param
Prepends internal property prefix to query parameters to match our response fields.
rest_prepare_comment
Filters a comment returned from the API.
rest_delete_comment
Fires after a comment is deleted via the REST API.