This filter is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
WP_REST_Posts_Controller::prepare_items_query
Determines the allowed query_vars for a get_items() response and prepares them for WP_Query.
rest_delete_{$this->post_type}
Fires immediately after a single post is deleted or trashed via the REST API.
rest_{$this->post_type}_trashable
Filters whether a post is trashable.
Advertisement
WP_REST_Posts_Controller::delete_item
Deletes a single post.
WP_REST_Posts_Controller::delete_item_permissions_check
Checks if a given request has access to delete a post.
WP_REST_Posts_Controller::update_item
Updates a single post.
WP_REST_Posts_Controller::update_item_permissions_check
Checks if a given request has access to update a post.
Advertisement
rest_insert_{$this->post_type}
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
WP_REST_Posts_Controller::create_item
Creates a single post.
WP_REST_Posts_Controller::create_item_permissions_check
Checks if a given request has access to create a post.
WP_REST_Posts_Controller::get_item
Retrieves a single post.
Advertisement
WP_REST_Posts_Controller::can_access_password_content
Checks if the user can access password-protected content.
WP_REST_Posts_Controller::get_item_permissions_check
Checks if a given request has access to read a post.
rest_{$this->post_type}_query
Filters the query arguments for a request.