Filter collection parameters for the comments controller.
rest_preprocess_comment
Filters a comment after it is prepared for the database.
rest_prepare_comment
Filters a comment returned from the API.
rest_delete_comment
Fires after a comment is deleted via the REST API.
Advertisement
rest_comment_trashable
Filters whether a comment can be trashed.
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
rest_pre_insert_comment
Filters a comment before it is inserted via the REST API.
Advertisement
rest_allow_anonymous_comments
Filter whether comments can be created without authentication.
rest_comment_query
Filters arguments, before passing to WP_Comment_Query, when querying comments via the REST API.
rest_prepare_autosave
Filters a revision returned from the API.
rest_prepare_attachment
Filters an attachment returned from the REST API.
Advertisement
get_the_excerpt
This filter is documented in wp-includes/post-template.php
rest_insert_attachment
Fires after a single attachment is created or updated via the REST API.
rest_after_insert_attachment
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php