This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
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.
Advertisement
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.
WP_REST_Comments_Controller::get_item_permissions_check
Checks if a given request has access to read the comment.
rest_comment_query
Filters arguments, before passing to WP_Comment_Query, when querying comments via the REST API.
Advertisement
WP_REST_Comments_Controller::get_items
Retrieves a list of comment items.
WP_REST_Comments_Controller::get_items_permissions_check
Checks if a given request has access to read comments.
WP_REST_Comments_Controller::register_routes
Registers the routes for the objects of the controller.
WP_REST_Comments_Controller::__construct
Constructor.
Advertisement
WP_REST_Comments_Controller
Core controller used to access comments via the REST API.
WP_REST_Attachments_Controller::get_media_types
Retrieves the supported media types.
WP_REST_Attachments_Controller::upload_from_file
Handles an upload via multipart/form-data ($_FILES).