Checks if a given post type can be viewed or managed.
WP_REST_Posts_Controller::check_assign_terms_permission
Checks whether current user can assign all terms sent with the current request.
WP_REST_Posts_Controller::handle_terms
Updates the post’s terms from a REST request.
WP_REST_Posts_Controller::handle_template
Sets the template for a post.
Advertisement
WP_REST_Posts_Controller::check_template
Check whether the template is valid for the given post.
WP_REST_Posts_Controller::handle_featured_media
Determines the featured media based on a request param.
WP_REST_Posts_Controller::handle_status_param
Determines validity and normalizes the given status parameter.
rest_pre_insert_{$this->post_type}
Filters a post before it is inserted via the REST API.
Advertisement
WP_REST_Posts_Controller::prepare_item_for_database
Prepares a single post for create or update.
WP_REST_Posts_Controller::prepare_date_response
Checks the post_date_gmt or modified_gmt and prepare any post or modified date for single post output.
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.
Advertisement
rest_{$this->post_type}_trashable
Filters whether a post is trashable.
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.