Retrieves the query params for collections.
WP_REST_Comments_Controller::get_item_schema
Retrieves the comment’s schema, conforming to JSON Schema.
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.
Advertisement
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.
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.
Advertisement
WP_REST_Comments_Controller::prepare_item_for_response
Prepares a single comment output for response.
rest_delete_comment
Fires after a comment is deleted via the REST API.
rest_comment_trashable
Filters whether a comment can be trashed.
WP_REST_Comments_Controller::delete_item
Deletes a comment.
Advertisement
WP_REST_Comments_Controller::delete_item_permissions_check
Checks if a given request has access to delete a comment.
WP_REST_Comments_Controller::update_item
Updates a comment.
WP_REST_Comments_Controller::update_item_permissions_check
Checks if a given REST request has access to update a comment.