Filters the post data for a response.
WP_REST_Posts_Controller::check_delete_permission
Checks if a post can be deleted.
WP_REST_Posts_Controller::prepare_item_for_response
Prepares a single post output for response.
WP_REST_Posts_Controller::check_create_permission
Checks if a post can be created.
Advertisement
WP_REST_Posts_Controller::check_update_permission
Checks if a post can be edited.
WP_REST_Posts_Controller::check_read_permission
Checks if a post can be read.
WP_REST_Posts_Controller::check_is_post_type_allowed
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.
Advertisement
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.
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.
Advertisement
rest_pre_insert_{$this->post_type}
Filters a post before it is inserted via the REST API.
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.