Prepares a single comment output for response.
rest_comment_trashable
Filters whether a comment can be trashed.
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.
Advertisement
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.
rest_after_insert_comment
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
rest_insert_comment
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
Advertisement
rest_pre_insert_comment
Filters a comment before it is inserted via the REST API.
WP_REST_Comments_Controller::create_item
Creates a comment.
rest_allow_anonymous_comments
Filter whether comments can be created without authentication.
WP_REST_Comments_Controller::create_item_permissions_check
Checks if a given request has access to create a comment.
Advertisement
WP_REST_Comments_Controller::get_item
Retrieves a comment.
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.