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::normalize_query_param
Prepends internal property prefix to query parameters to match our response fields.
WP_REST_Comments_Controller::prepare_links
Prepares links for the request.
Advertisement
WP_REST_Comments_Controller::prepare_item_for_response
Prepares a single comment output for response.
WP_REST_Comments_Controller::delete_item
Deletes a comment.
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.
Advertisement
WP_REST_Comments_Controller::update_item_permissions_check
Checks if a given REST request has access to update a comment.
WP_REST_Comments_Controller::create_item
Creates a comment.
WP_REST_Comments_Controller::create_item_permissions_check
Checks if a given request has access to create a comment.
WP_REST_Comments_Controller::get_item
Retrieves a comment.
Advertisement
WP_REST_Comments_Controller::get_item_permissions_check
Checks if a given request has access to read the comment.
WP_REST_Comments_Controller::get_comment
Get the comment, if the ID is valid.
WP_REST_Comments_Controller::get_items
Retrieves a list of comment items.